This is a migrated thread and some comments may be shown as answers.

[Solved] Date field in the Grid Popup Editing Form

2 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yan
Top achievements
Rank 1
Yan asked on 16 Aug 2011, 04:57 PM
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?

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 17 Aug 2011, 07:53 AM
Hi Yan,

 Unfortunately this is not a known problem. How is your setup different from our editing online demo? Is there a chance to provide a running project?

On a side note I've noticed that you are using an older version. You may consider upgrading to a more recent one.

Best wishes,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Yan
Top achievements
Rank 1
answered on 17 Aug 2011, 09:57 AM
Thanks Atanas.

Once I have updated to the latest version. I will check it again and let you know if there is an issue on the latest version as well.
Tags
Grid
Asked by
Yan
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Yan
Top achievements
Rank 1
Share this question
or