When I add a [DataType(DataType.Currency)] annotation to a field on my view model, when I click the edit button in the grid I am getting the following error in the telerik.textbox.min.js file:
Microsoft JScript runtime error: Unable to get value of the property 'toLowerCase': object is null or undefined
Here is the offending line of code:
because k.type is undefined
Here is my grid:
and here is the model:
It works fine if I remove the [DataType] annotation from the Price field but then the input control is a simple textbox rather than the nice numeric textbox. As soon as I add the DataType it errors.
I'm not getting how this works in the example and doesn't work in my project, any insight would be appreciated!