This question is locked. New answers and comments are not allowed.
2011 Quarter 1 Release.
Did something change when Saving a row? We have DateTime values that get passed to the Grid that are never used, so they are not posted back in the Model on a save. For some reason those values are causing ModelState.Valid to be false, saying the dates are not valid. If you need some screenshots let me know.
Thanks for the help.
Chris
Did something change when Saving a row? We have DateTime values that get passed to the Grid that are never used, so they are not posted back in the Model on a save. For some reason those values are causing ModelState.Valid to be false, saying the dates are not valid. If you need some screenshots let me know.
Thanks for the help.
Chris
6 Answers, 1 is accepted
0
Hello Chris,
Rosen
the Telerik team
Indeed you are correct about the behavior you have described. However, we have address it and I have attached a internal build which contains the fix. I have updated your telerik points too.
Greetings,Rosen
the Telerik team
0
Chris
Top achievements
Rank 1
answered on 18 Mar 2011, 07:36 PM
Thanks for looking into this. But unless I am missing something this hotfix did not seem to fix the problem. It did change the behavior slightly, but there are still errors being added to the model state. Instead of saying that the dates are invalid values there is just an error with a property named "AttemptedValue" that is set to the value of the date.
Are there any special instructions I need to follow to put this hotfix into my project? I replaced the reference to the original Telerik.Web.Mvc.dll with a reference to the new dll. I also replaced the telerik folders in the Content and Scripts folders with the folders from the zip file. Are there any other steps I need to take for the hotfix to take affect? Thanks again.
Are there any special instructions I need to follow to put this hotfix into my project? I replaced the reference to the original Telerik.Web.Mvc.dll with a reference to the new dll. I also replaced the telerik folders in the Content and Scripts folders with the folders from the zip file. Are there any other steps I need to take for the hotfix to take affect? Thanks again.
0
Hello Chris,
Rosen
the Telerik team
Can you please provide a small runnable sample in which the described behavior can be observed? This way we will be able to get more details about your scenario and provide you with more to-the-point answer.
Greetings,Rosen
the Telerik team
0
Chris
Top achievements
Rank 1
answered on 21 Mar 2011, 01:00 PM
Seems like the problem is with CreatedOn and CreatedBy in the sample. Thanks for the help.
0
Accepted
Hello Chris,
Rosen
the Telerik team
Thank you for the sample project. I was able to recreate the issue you have described. I'm attaching a newer build which should resolve it. Please, give it a try and let us know about the result.
Greetings,Rosen
the Telerik team
0
Chris
Top achievements
Rank 1
answered on 21 Mar 2011, 02:28 PM
That appears to be working. I noticed that CreatedOn and CreatedBy are now being bound even though they are not in the Grid. I don't know if that is intentional or not, i just know it wasn't doing that in previous versions. Either way, it works. Thanks for all your help.