Set max date for date column in grid

Hi,

I have a grid with a column displaying a date.  The editType is datePickerEdit for this column.  I would like to set the max date of the datePickerEdit to today's date.  Please can you tell me if this is possible?

Kind Regards,

Jon



2 Replies

JD Jonathan Dodd February 14, 2019 04:18 PM UTC

Figured it out after a pointer from a colleague and a look through the help docs.

<e-grid-column field="myDateField" headerText="Test Date" width="150" editType="datepickeredit" edit="@{new { @params = new { max = DateTime.Today } }}" ></e-grid-column>

Jon


TS Thavasianand Sankaranarayanan Syncfusion Team February 15, 2019 04:11 AM UTC

Hi Jonathan, 
 
Greetings from Syncfusion. 
 
We are happy that the problem has been solved. 
 
Please get back to us if you need any further assistance.  
                          
Regards, 
Thavasianand S.

Loader.
Up arrow icon