Is there any way to set a maxlength attribute on the input of every cell. I was hoping I could accomplish this with out using validation.
Thanks!
3 Answers, 1 is accepted
0
Accepted
Vessy
Telerik team
answered on 24 Jul 2018, 12:37 PM
Hi Trevor,
The content of each cell in the Spreadsheet is kept into a div element, so adding MaxLength attribute is not an option. A possible approach you can use, though, is to attach a handler to the change event of the control and check manually the length of the new value, cancelling the event should it exceed the target max length.
You are welcome, Trevor :) Do let us know should any further question related to our controls occur.
Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.