cancel
Showing results for 
Search instead for 
Did you mean: 

TreeTable is deselecting previously selected rows on NodeExpand

Former Member
0 Kudos

Hi All,

So I'm trying to attach event on row deselection in a TreeTable control.

I have to select few child nodes, then deselect one of them and perform action with JSON model of deselected one.

Problem is, that when I select first set of child nodes, I want to open next parent node to see&select its children. When I press + to expand node, my previous selection goes away.

Here is the code:JS Bin - Collaborative JavaScript Debugging

Any suggestions, please?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182862
Active Contributor
0 Kudos

HI Ivan

Please change

if (!(oTable.isIndexSelected(deselectedRowId))){     

to

if (deselectedRowId !==-1 && !(oTable.isIndexSelected(deselectedRowId))){     

Thanks

-D