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

Simple DateTime Editing

5 Answers 87 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.
Michael Pine
Top achievements
Rank 1
Michael Pine asked on 22 Mar 2011, 05:35 AM
Just looking at using some of the MVC Telerik controls, particularly the grid, so just starting out with a simple Grid, following the samples, all is good, with a String, Number field, with ajax editing inline, just have a simple class that is returning me a list of objects. So stops working when I add a DateTIme field into the Object class.

Data displays ok and then when I click edit, I get my editor controls, I can choose a date from the DateTime picker, but when I try and update it get the following error, see attached image.

The Controller is getting hit when I press the update button


EDIT: Sorry, is this something todo with Culture, if I change the DateTime field and add an annotation of [DateType(DateType.Date)] it then uses the Date.ascx shared template, but when I hit update after selecting say '27/3/2011' I get an error saying '3/27/2011' is not a valid value for 'Purchased', how do I handle the Culture information on the Ajax side of things ?    

EDIT2; Yeah so if I choose '10/10/2011' for the Value it works fine.........

EDIT3: *sigh* sorry for taking up bandwith, so once I formatted the DateTIme value to my desired Format all good, including Date and or Date/Time.... thanks for the help! :) :)

Only joking.... do I get points or something for answering own question! :)

5 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 22 Mar 2011, 11:39 AM
Hi Michael Pine,

I have attached internal build which should address the initial issue you have described. Can you please give it a spin?

Regards,
Rosen
the Telerik team
0
Michael Pine
Top achievements
Rank 1
answered on 22 Mar 2011, 10:14 PM
Sorry just a question, how do I upgrade the files, do I just remove the folders of the old files and place the new folders into the appropriate locations.

e.g I currently have the 2011.1.315 folder under my Scripts folder, so do I just remove this and place the new 2011.1.322 under my Scripts folder and the same for the other locations ? Are there any settings I need to change other than replace the files ?

cheers
Michael
0
Rosen
Telerik team
answered on 23 Mar 2011, 07:52 AM
Hi Michael Pine,

Indeed, you should replace the Script and Content folder files as well as the assemblies. Also note that if you have enabled CDN feature you will need to disable it as the internal build's resources are not available through the CDN.

However, the easiest way to upgrade a project is by using our visual studio extensions.

Greetings,
Rosen
the Telerik team
0
Enrique Albert
Top achievements
Rank 1
answered on 02 Apr 2011, 05:31 PM
Hi,

I had the same problem and the patch fixed the problem. I tried to use the VS Extension function as mentioned but it fails to recognize my Telerik user account, also when I tried to browse the patch file in my computer, it only allows me to select a folder; it does not work. I had to copy the files manually to the installation folders.

I see there is one new patch file, where can I get it? It is not available at Codeplex.

Edit1: I found this post with links to what it seems the latest version: post with links to patches; it would be great if it could be indicated where the latest patches can be found for downloading, specially if the VS function does not work. Thanks

Edit2: Only the last patch resolved most of my problems with datetime and time columns when using Ajax. The datepicker control still had some minor problems, not a big deal for me, will see whether system test thinks the same :)
0
Rosen
Telerik team
answered on 04 Apr 2011, 07:52 AM
Hello Enrique Albert,

As you may be aware internal builds are only available to commercial license customers.

All the best,
Rosen
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
Tags
Grid
Asked by
Michael Pine
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Michael Pine
Top achievements
Rank 1
Enrique Albert
Top achievements
Rank 1
Share this question
or