Hi,
Is it possible/difficult that when a row is expanded, other rows are automatically collapsed?
i.e. only allow one drilldown at a time.
I'd like to see it as a selectable feature of the control, but would accept using a short script to achieve the same effect.
Hey,
If you would like to see this as a feature in a future version, simply contact our PM or submit a feature request.
As for getting it to work now, that is not too difficult. Simply attach the following client side handler to the RowExpanded client event of the hierarchical data grid.
<ClientEvents RowExpanded="rowExpanded" />
function rowExpanded(grid, args) { var row = args.get_row(); var rows = grid.get_rows(); var count = rows.get_length(); for (var x = 0; x < count; ++x) { var tempRow = rows.get_row(x); if (tempRow != row) tempRow.set_expanded(false); } }
Let me know if this works sufficiently for you.
regards,
David Young
Hello David,
I am using "NetAdvantage Volum 2010.2"
This function is not working properly in IE8, Mozilla & Safari (all the version).
Testing Senorio: (Example If we have Parent 3 rows(row1,row2,row3) in WHDG and here each row have in child level some values)
And Try This:
row1 : Expand First Time
row2 : Expand Second Time (It will collapse"row1")
row3 : Expand Third Time (It will collapse"row2")
row1 : Expand Fourth Time (It will collapse"row3")
row2 : Expand Firth Time (It will not collapse"row1")
row3 : Expand Six(Finally) Time (It will not collapse"row1" & "row2")
here set_expanded(false) not working properly.
Please if you found any solution, please help me.
Thanks & Regards,Raja S.
Hi Raja,
Is it actually getting into the set_expanded(false) call? And that's not working?
-Dave
Hi, Is there any Server side event or implementation to achieve the same.
Thanks in Advance
Abhishek
Hi Abhishek,
Still i did not get any solution for this issue. If any one has solved this issue, Please let us know so it will very helpful !!!!!!
Thanks,Raja