For a runnable example, refer to the demo on custom validator editing in the Grid. The Validator is initialized when an item is in edit mode. To define a validation rule on the client-side, extend the Kendo UI for jQuery Validator. public class OrderViewModelįor additional use-cases and information refer to the Editor Templates article of the grid: In the C# class declaration decorate the needed properties with the UIHint data attribute. Specify the field's data type at the top. If such a folder is not existent, create one.Īdd a cshtml file to the EditorTemplates folder and name it Number. The UI for ASP.NET Core Visual Studio Templates come with EditorTemplates which are located in \Views\Shared\EditorTemplates. The steps below will cover the scenario of using a NumericTextBox as a custom editor for a field in the grid. The Grid enables you to implement custom column editors and to specify validation rules that apply while the user edits the data. Download free 30-day trial Custom Editing
0 Comments
Leave a Reply. |