I have a hierarchical grid but i first have to save the parent before adding child records. But you can open the child view even if the parent isn't saved yet. Does anyone has a solution? Catch an onrowleft event or something?
Was wondering if you'd figured this out. It was something we could easily do in silverlight.
0
Vladimir Iliev
Telerik team
answered on 01 Mar 2013, 08:41 AM
Hi Andre,
To be able to achieve the desired behavior you can for example attach delegate on the click event of the detail expand arrow to check if current parent dataItem is new (is not saved) to prevent the expanding of the detail grid. Please check the example below:
//Change Employees with your grid name
//the grid should have model ID defined
$("#Employees table").on("click", ".k-hierarchy-cell a", function (e) {