Blazor | ComponentOne
Controls / DateTime Editors / DatePicker Overview / Placeholder
In This Topic
    In This Topic

    DatePicker lets you display a watermark text in the DatePicker control when nothing is selected or displayed in it. You can add a watermark text to the DatePicker control using Placeholder property of the C1DatePicker class, which prompts user to select a date from the drop-down calendar of the control.

    The following code shows the usage of the Placeholder property to add a watermark text in the DatePicker control:

    Copy Code
    <C1DatePicker Placeholder="Enter date"></C1DatePicker>