This question is locked. New answers and comments are not allowed.
Hi,
I am using version 2011.1.315 and ajax binding grid with a popup editing mode. My model contains around 20 fields but since I do not want the horizontal scrollbar to be displayed on my grid, I am only displaying 2 fields (e.g. Name and Email) in the grid.
Then I am putting all of the fields into a custom editor template and this will be popped up when I am going to edit the grid. I am also using the DatePicker for those date fields in the custom editor template.
My question is I am using the DatePicker for these date fields but they are displaying the data as "16/8/2011 00:00:00" with the time value. And I am 100% sure that these date fields are in Date data type and are using the DatePicker. It is because, Telerik only displays the calendar icon next with the textbox (without the Timer icon) and I have specified DataType.Date in the ViewModel.
The strangest thing is if I add these date fields into my grid, then these date fields will be displaying fine "16/8/2011" on my custom editor template.
Would you please tell me is there any way to fix this problem and why did it behave like this?
I am using version 2011.1.315 and ajax binding grid with a popup editing mode. My model contains around 20 fields but since I do not want the horizontal scrollbar to be displayed on my grid, I am only displaying 2 fields (e.g. Name and Email) in the grid.
Then I am putting all of the fields into a custom editor template and this will be popped up when I am going to edit the grid. I am also using the DatePicker for those date fields in the custom editor template.
My question is I am using the DatePicker for these date fields but they are displaying the data as "16/8/2011 00:00:00" with the time value. And I am 100% sure that these date fields are in Date data type and are using the DatePicker. It is because, Telerik only displays the calendar icon next with the textbox (without the Timer icon) and I have specified DataType.Date in the ViewModel.
The strangest thing is if I add these date fields into my grid, then these date fields will be displaying fine "16/8/2011" on my custom editor template.
Would you please tell me is there any way to fix this problem and why did it behave like this?