Hey Telerik Community,
I have been asked to implement Expand/Collapse row editing using the OnRowClick client event (ex: click the row once it expands, click the row again it collapses). I have the row expand working nicely.
Ex. Expand:
What is its counterpart for collapsing the row using the same click event? I imagine it will have some decision logic, but am not sure what the editItem should do or what the decision tree should contain.
Ex. Expand/Collapse?:
Has anyone performed this same task? If so what was the solution?
Thanks in advance,
John
I have been asked to implement Expand/Collapse row editing using the OnRowClick client event (ex: click the row once it expands, click the row again it collapses). I have the row expand working nicely.
Ex. Expand:
function RowClick(sender, eventArgs) { sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());}What is its counterpart for collapsing the row using the same click event? I imagine it will have some decision logic, but am not sure what the editItem should do or what the decision tree should contain.
Ex. Expand/Collapse?:
function RowClick(sender, eventArgs) { if(?????) { sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical()); } else { sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical()).????; }}Has anyone performed this same task? If so what was the solution?
Thanks in advance,
John