Karthika Subramanian
Karthika Subramanian

Reputation: 346

Adding the max min length property in telerik grid Textbox in insert mode

I m using the mvc telerik grid. While adding the new record, it is getting textboxes, for those input controls, need to restrict max number of characters for ex: 20.

Please help me.. Thanks in Advance

Upvotes: 1

Views: 1787

Answers (1)

Karthika Subramanian
Karthika Subramanian

Reputation: 346

We can get the id of the particular of the column ( for ex: codeId) and add the property of maxlength onEdit client event. The grid has an OnEdit client event for that event written a function javascript where it has the necessary prop included for the input fields.

$("#elementId").prop("maxlength",'your max length for restriction');

Upvotes: 1

Related Questions