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

[Solved] Wrong editor type for an integer.

1 Answer 103 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.
Dave Hayward
Top achievements
Rank 1
Dave Hayward asked on 21 Dec 2011, 04:07 PM
In my model I've defined a property that's an integer value, and annotated it as such ([DataType("Integer")]. In my grid I've defined a column for the property in the model. When I edit the row, the only editable column is the one with the integer value for the property. The editor that appears is not a numeric text box, but a string input editor. I'm not quite sure why this is happening, but I presume it's something I haven't done properly. Any ideas what might be causing this?

I should also note that I did copy the .Integer.cshtml template into the shared view folder (~/Views/Shared).

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Dec 2011, 03:03 PM
Hello Dave Hayward,

Editor templates should be copied in the EditorTemplates folder under ~/Views/Shared folder. If this does not solve your problem please provide an isolated working sample that shows your current logic and setup so we can check where the problem comes from.

Greetings,
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
Dave Hayward
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or