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

    DatePicker lets you display a watermark text in the DatePicker control when nothing is selected or entered in it. You can add a watermark text to the DatePicker control using Placeholder property of the C1DateTimePicker class, which prompts user to select or enter the date and time using the drop-down button of the control.

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

    C#
    Copy Code
    <C1DateTimePicker Placeholder="Enter Date and Time" DropDownBehavior="@DropDownBehavior.HeaderTap"></C1DateTimePicker>