Based on the documentation for the removeRow method of the grid, I should be able to remove a row by passing "tr" reference to the method. Am I not getting the reference the correct way?
I'm capturing a click event on specific cells in the row to handle expand/collapse. The click event finds the row reference:
I find the detail row:
I get a reference to the grid:
I then collapse the row to hide it, then I call removeRow - but nothing actually happens:
I'm attaching my test project.
I'm capturing a click event on specific cells in the row to handle expand/collapse. The click event finds the row reference:
var
rw = $(
this
).closest(
"tr"
);
I find the detail row:
rw2Del = $(rw).next(
".k-detail-row"
);
I get a reference to the grid:
var
grid = $(
"#boxesgrid"
).data(
"kendoGrid"
);
I then collapse the row to hide it, then I call removeRow - but nothing actually happens:
grid.removeRow(rw2Del);
I'm attaching my test project.