This question is locked. New answers and comments are not allowed.
Hello all.
I have a nasty problem with an exception being thrown when the Grid control's pop-up editor updates my data.
First of all, let me give you the picture.
Using q1 2012 Telerik ASP.Net MVC3 extensions.
Model has this property:
public double MyDouble{get;set;}
Using Grid with Ajax editing, with GridEditMode.PopUp
Culture is us-EN
Each time I edit a row, the popup appears.. I used the data annotations for the double property to render Editor Templates/Numeric. the one that comes by default with Telerik installation.
The problem is this: when I enter any value containing a decimal, the database updates fine, but then an exception is thrown before the grid is updated via ajax. An example for a problem value is 33.5. An integer does not cause any error.
The picture of the screenshot is attached. I believe the inner exception is of particular import, kindly take note of it in the screenshot:
{"32.5 is not a valid value for Int32."}
Obviously a casting problem, but I cant understand why it happens.
Thanks in advance.
Edit: I forgot to mention that the exception is thrown from GridControllerExtensions.cs public static T ValueOf<T>(this ControllerBase controller, string key) method, around line 73.
I have a nasty problem with an exception being thrown when the Grid control's pop-up editor updates my data.
First of all, let me give you the picture.
Using q1 2012 Telerik ASP.Net MVC3 extensions.
Model has this property:
public double MyDouble{get;set;}
Using Grid with Ajax editing, with GridEditMode.PopUp
Culture is us-EN
Each time I edit a row, the popup appears.. I used the data annotations for the double property to render Editor Templates/Numeric. the one that comes by default with Telerik installation.
The problem is this: when I enter any value containing a decimal, the database updates fine, but then an exception is thrown before the grid is updated via ajax. An example for a problem value is 33.5. An integer does not cause any error.
The picture of the screenshot is attached. I believe the inner exception is of particular import, kindly take note of it in the screenshot:
{"32.5 is not a valid value for Int32."}
Obviously a casting problem, but I cant understand why it happens.
Thanks in advance.
Edit: I forgot to mention that the exception is thrown from GridControllerExtensions.cs public static T ValueOf<T>(this ControllerBase controller, string key) method, around line 73.