do we have an option in igHierarchicalGrid like double click on selected row expand the chid grid ?
Hello,
Thank you for contacting Infragistics Developers Support! We do not have an option like this but this is easily achievable. First thing we need to do is to cancel rowExpanding and rowCollapsing events. Then we bind to the double click event of the expanding cells. In its handler we call expand or collapse methods of the Hierarchical Grid. I prepared a sample that demonstrates the approach.
I hope this helps!
Kind regards,
Petko Zhekov
Software Developer
Hi Petko Zhekov,
Thanks for your reply can we achive it in RowSelectors event ?
Hi,
Yes it is possible. Just add the row selectors to the elements that have double click handler attached to them. Then the code will look like this:
$('#Grid1_container').on('dblclick', 'td.ui-iggrid-expandcolumn, th.ui-iggrid-rowselector-class', function(e) { var row = $(e.target).closest('tr')[0], $hGrid = $('#Grid1'), isExpanded = $hGrid.igHierarchicalGrid('expanded', row), method = isExpanded ? 'collapse' : 'expand'; $hGrid.igHierarchicalGrid(method, row); });
Kind regards, Petko Zhekov Software Developer
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Kind Regards,
Infragistics, Inc.