Say I have a master grid with a nested grid defined via a detail template, and that detail grid has popup editing enabled.
Now, if the master grid has a column with e.g. 'MaxDetailRows' to determine the maximum number of records that can be added in the detail grid - how can I check that the number or rows in the detail grid during editing does not exceed the value held in MaxDetailRows.
Here is the edit event code I have as a start :
//get editor window object
kendoWindow = e.container.data(
// ==> Here I would like to read the master grid's row, and read a column/cellvalue (e.g. 'MaxDetailRows')
if (number of rows in the detail grid == MaxDetailRows)
"New Detail Record"
Thanks in advance,