Blazor | ComponentOne
Controls / DateTime Editors / DateRangePicker / Placeholder
In This Topic
    Placeholder
    In This Topic

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

    Placeholder set in the DateRangePicker control

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

    Index.razor
    Copy Code
    <C1DateRangePicker Placeholder="Select a date range"></C1DateRangePicker>