Opened 6 years ago

Closed 5 years ago

#17158 closed defect (patchwelcome)

TreeGrid and LazyTreeGrid "keepSelection" issues

Reported by: agmonser Owned by: Evan
Priority: undecided Milestone: tbd
Component: DojoX Grid Version: 1.8.0
Keywords: Cc:
Blocked By: Blocking:

Description

I'm using TreeGrid/LazyTreeGrid? in combination with JsonRestStore? and ForestStoreModel?. I want to keep existing selections of my TreeGrid? on expanding/collapsing rows, but when I set keepSelection to true for the given TreeGrid? (doesn't matter whether it is LazyTreeGrid? or TreeGrid?) I've got very erroneous behavior of my grid:

By expanding the node above selected rows (or node belonging to any of the selected rows), instead of shifting selection(s) down, there appear a lot of new selections - usually the all children of opened nodes are also selected and all sibbling rows under the opened node. On collapsing such expanded node, all siblings below that node remain selected.

There are attached screenshots explaining my issue.

Thanks, Alex

Attachments (3)

before_expanding_node.png (63.5 KB) - added by agmonser 6 years ago.
Before expanding node 6 (fifth row) having two subsequent rows selected (7 and 8).
after_expanding_node.png (61.7 KB) - added by agmonser 6 years ago.
Incorrect selection on expanding node 6 (fifth row) when only nodes 7 and 8 (sixth and seventh row) have been initially selected.
after_collapsing_node.png (66.3 KB) - added by agmonser 6 years ago.
Incorrect selection on collapsing node 6 (fifth row) when only nodes 7 and 8 (sixth and seventh row) have been initially selected.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by agmonser

Attachment: before_expanding_node.png added

Before expanding node 6 (fifth row) having two subsequent rows selected (7 and 8).

Changed 6 years ago by agmonser

Attachment: after_expanding_node.png added

Incorrect selection on expanding node 6 (fifth row) when only nodes 7 and 8 (sixth and seventh row) have been initially selected.

Changed 6 years ago by agmonser

Attachment: after_collapsing_node.png added

Incorrect selection on collapsing node 6 (fifth row) when only nodes 7 and 8 (sixth and seventh row) have been initially selected.

comment:1 Changed 6 years ago by agmonser

I have just tested against Dojo 1.9.0 and this issue still persists.

comment:2 Changed 5 years ago by bill

Resolution: patchwelcome
Status: newclosed

DojoX Grid and EnhancedGrid? are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

Note: See TracTickets for help on using tickets.