I have a grid with a subgrid and I need to take an action after the subgrid has loaded, I do this using the event “onSubGridLoaded”. This works fine.
However elsewhere in my code I can reload the subgrid using subgrid.clearAndLoad() and after this I want to take the same action as above, however “onSubGridLoaded” is not fired after clearAndLoad(). I have tried other methods, but I need the row id of the subgrid’s parent row, which seems to be only present in the “onSubGridLoaded” event…
Is there a way I can fire “onSubGridLoaded” after subgrid.clearAndLoad() , or alterntively how can I get the grid row in which this subgrid is contained,
yeah I am using the onXLE event but what it doesn’t give me is the id of the containing row, i.e. the row that the subgrid is opened from, this is passed in on the “onSubGridLoaded” event function. How can I get the ID of the row in the onXLE event of the subgrid? I tried using grid.getSelectedRowId but I get null.