| Issue 179: | Toggle select Button in selectMode:3 doesn't work | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? "Toggle select" Button for "selectMode: 3" doesn't work What version of the product are you using?: Version 1.1.0 On what operating system and browser? Vista, IE8
Feb 3, 2011
Project Member
#1
moo...@wwwendt.de
Status:
Waiting
Feb 4, 2011
Hi,
just play with your "dynatree-1.1.0\doc\sample-select.html" example page.
The selectMode vlaue of $("#tree2") will change from 2 to 3:
$("#tree2").dynatree({
checkbox: true,
selectMode: 3,
and try to play with "This tree has selectMode 2" option, go in next steps:
1. click "Select all" button
2. Unselect "Sub-item 3.1.1"
3. click "Toggle select" button.
I'm expecting reverse of all child nodes.
In our situation "Sub-item 3.1.1" should be selected and "Sub-item 3.1.2" should be unselected. But result is wrong: the node "Sub-item 3.1.2" is selected.
play again with "Toggle select" Button.
Feb 4, 2011
(just guessing:) Have you tried to expand all node and then select them all - one by one - top down? The *parent* of 3.1.1 is toggled, which will deselect all children. I think, to achieve the behaviour you have in mind, you have to modify the toggle code, so that only end-nodes (i.e. nodes without children) are toggled
Jun 19, 2011
I went ahead and implemented a fix. Please see attached for a diff. ;-)
Jun 19, 2011
I take that back. My fix is not really working. Will look at it again later. ;-)
Oct 6, 2013
Closing 'Waiting' issues without timely answer
Status:
Done
May 2, 2014
Cleanup Scrumboard
Labels:
Milestone-Release2.0
|