I may be missing something obvious here, but how was the Unit Price NumericTextBox with a minimum of 1 accomplished on the demo at http://demos.telerik.com/aspnet-mvc/grid/editing-custom ? I only see one mention of UnitPrice in the example code
columns.Bound(p => p.UnitPrice).Width(120);
but surely that's not all there was to it. When I view the demo page's source I also see a kendo.data.DataSource being created with:
UnitPrice: { type:
"number"
, validation: { required:
true
, min: 1} }
but it still seems like there would be something else going on in the @(Html.Kendo().Grid definition to make the editor use a NumericTextBox over just a plain textbox.
Is there anything else going on, and if so, where can I find the details? I'm not seeing any more information in the local demo project either, but I might just be looking in the wrong place. Or is there a better demo example I can look at that shows how to do just the NumericTextBox in a grid?