Good morning,
I have a WebHierarchicalDataGrid with 4 bands and I have set the click and double click client side event.
Both works, but here is the problem :
if I'm in the first band the event is raised one time
if I'm in the second band the event is raised twice, etc...
Is there a proper way to prevent this behavior, I mean, I want the event raised only one time whatever the band.
Best Regards,
Erik,
Hi Erik,
I imagine that in the second band, the event is being fired once for the child and once for the parent that the child is in. Because technically both grids were clikced. You will just have to adjust your logic in the click event to deal with the click in the correct grid.
regards,
David Young
Hi,
I am also facing the same kind of problem, is there a way I can know if the selected row is of the parent grid or its child grid. I want the row to be expanded when I single click on the row, for first child it is working and if I click on a row of child grid , it gives an error. How to resolve that ?
var grid = ig_controls["WebHierarchicalDataGrid2"].get_gridView(); var gridrow = grid.get_behaviors().get_activation().get_activeCell().get_row(); gridrow.get_grid().get_rows().get_row(gridrow._index).set_expanded(true);
it only works for parent grid. How to do it for its child grid also.