TimePicker only in GridColumn

I want to show only Time picker for GridColumn when I set its Type to EditType.DateTimePickerEdit. However when I try to update/add row, it shown two buttons (one for Date and other for time). Though have added Format attribute that prevents adding date to the field.

I only want to show time picker not date picker. What is the solution to the problem? Code is here:


<GridColumn HeaderText="Hours Open: SUN" Field="@nameof(ProvidersListModel.HoursOpenSun)" EditType="EditType.DateTimePickerEdit" AllowResizing="true" Width="200" Format="hh:mm tt" />

Note: ProvidersListModel.HoursOpenSun is of DateTime.




1 Reply

RS Renjith Singh Rajendran Syncfusion Team January 4, 2022 09:53 AM UTC

Hi Faizan, 
 
Greetings from Syncfusion support. 
 
Based on this scenario, we suggest you to use the Cell Edit Template feature of grid and render your custom component(SfTimePicker) during editing. We have already documented this topic under our online documentation. Please refer the below documentation for more details, 
 
Please get back to us if you need further assistance. 
 
Regards, 
Renjith R 


Loader.
Up arrow icon