kendo ui datasource schema model fields type - date ?

1 Answer 4150 Views
Data Source
Eddie
Top achievements
Rank 1
Eddie asked on 16 Sep 2014, 09:21 AM
dear all,

I am going to implement a grid that allow user to edit a date field by selecting the date from the calendar control. I have tried to change the field type to date but the value can not be displayed. any advise ?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 18 Sep 2014, 07:16 AM
Hi Eddie,

Please make sure that the data type in the actual datasource is Date, not String, and the values are provided to the Grid as Date objects.

http://demos.telerik.com/kendo-ui/grid/remote-data-binding

Setting the data type in the dataSource's schema.model is required.

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.model

Setting the format in the column settings (see the demo above) is optional.

In case you need further assistance, please provide some code, so that I can see what have you implemented so far.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Data Source
Asked by
Eddie
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or