DateTimeEditControl Step Increment Of Time Picker

I  saw this 
    public IEditorSettings DateEditParams = new DateEditCellParams
    {
        Params = new DatePickerModel() { EnableRtl = true, ShowClearButton = false }
    };
What is the correct syntax for customising the DateTimeEdit control so that I can set the timepicker to step value to 5?

1 Reply 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team September 10, 2020 10:23 AM UTC

Hi Paul, 

Greetings from Syncfusion support. 

Based on this requirement, we suggest you to use the EditTemplate feature of Grid. With this you can render your own custom component(SfDateTimePicker) in the Edit form of Grid. Please refer the below document for more details, 

Please refer and use as like the codes below, 

 
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" Format="d" TextAlign="TextAlign.Right" Width="130" Type="ColumnType.Date"> 
    <EditTemplate> 
        <SfDateTimePicker ID="OrderDate" @bind-Value="@((context as Order).OrderDate)" TValue="DateTime?" Step="5"> 
        </SfDateTimePicker> 
    </EditTemplate> 
</GridColumn> 


Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Marked as answer
Loader.
Up arrow icon