I have a simple kendo UI grid which is supposed to have a maximum of only 5 rows. Is there any configuration property that I can use to limit the rows, or should I write some simple custom logic to examine my data source and prevent adding more than 5 rows?
Share
Given the following
kendoGriddefinition:Where I added a
createbutton in the toolbar but redefined itsclassNametok-grid-add2. Then I add trap theclickevent on this button as follow:Where I check the number of rows and if there is less than 5 then I invoke
grid.addRow()otherwise I alert user that there are too many rows.