Search results

Set the Placeholder in Blazor DatePicker component

03 Aug 2021 / 1 minute to read

The following example demonstrates how to set Placeholder in the DatePicker component.

Using Placeholder, you can display a short hint in the input element.

Copied to clipboard
@using Syncfusion.Blazor.Calendars

<SfDatePicker TValue="DateTime?" Placeholder="Select a date"></SfDatePicker>

The output will be as follows.

datepicker