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

[Solved] Inline edit shows datetime values as blank

5 Answers 96 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.
James
Top achievements
Rank 1
James asked on 01 Jun 2012, 07:20 PM
We recently upgraded our MVC Telerik controls to be using Telerik Q1 2012 sp1 - -version-2012-1-214. The grid in question uses inline edits within the grid. When I click on the image to edit a line the rows column cells all go into edit mode. The dates on this latest version seem to be not getting picked up and show up as empty text boxes. For some reason the latest version of the grid does not recognize the model object's columns that are datetime. I decorated the object with a filter and it solved the problem but I cannot do this on all my objects. This is clearly a bug in the new version of the grid. Is there any fix or download for this yet? 

The MVC filter in my bo looks like this:
     [DataType(DataType.Date)]  //This should not be needed. Telerik should recognize the datatype and not display blank.
     public DateTime UpdatedDate { get; set; }

5 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 06 Jun 2012, 08:20 AM
Hello James,

Could you please try to update to the latest version Q1 2012 SP1 (version 2012.1.419) and see if it works like you expected.
According to the changes the DateTimePicker default format is set to the General DateTime format ("M/dd/yyyy h:mm:ss tt") 
Also you you could try to change the format directly in the DateTimePicker editor template without performing an update.

Regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
James
Top achievements
Rank 1
answered on 06 Jun 2012, 06:24 PM
We are on build 419. We tried upgrading to that already. That did not help. We are trying to get formatting to work. This only occurs when the data is pulled from a VIEW. For some reason telerik does not interpet the datatype correctly for the datetime sql fields in the view. 
0
Petur Subev
Telerik team
answered on 11 Jun 2012, 11:12 AM
Hi James,

I am not sure what else might be causing this issue. Could you please prepare a small project which replicates that behavior? 

Kind regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
James
Top achievements
Rank 1
answered on 11 Jun 2012, 06:02 PM
Hi, unfortunately I do not have time to code sample applications to help telerik with their controls. If you code up a small sample that shows it working I can see what is different in our application. 
0
Petur Subev
Telerik team
answered on 14 Jun 2012, 01:32 PM
Hello James,

Please find the sample project in the attached files. I hope it helps.

All the best,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
James
Top achievements
Rank 1
Share this question
or