Opened 7 years ago
Closed 6 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)
Change History (5)
Changed 7 years ago by
Attachment: | before_expanding_node.png added |
---|
Changed 7 years ago by
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 7 years ago by
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 7 years ago by
I have just tested against Dojo 1.9.0 and this issue still persists.
comment:2 Changed 6 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
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.
Before expanding node 6 (fifth row) having two subsequent rows selected (7 and 8).