My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Done
Owner:  ----
Closed:  Oct 2013


 
Reported by Serhiy.M...@gmail.com, Feb 3, 2011
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
Couldn't reproduce.
Maybe it doesn't behave as you _expect_ - the code simply walks the nodes ans toggles the status. If it toggles a parent, all children will be (de)selected, and then visited.
You should see the same behavior as if you would click all nodes one-by-one.
Can you confirm, or give an more detailed sample?
Status: Waiting
Feb 4, 2011
#2 Serhiy.M...@gmail.com
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
Project Member #3 moo...@wwwendt.de
(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
#4 lesterch...@gmail.com
I went ahead and implemented a fix. Please see attached for a diff. ;-)

Jun 19, 2011
#5 lesterch...@gmail.com
I take that back. My fix is not really working. Will look at it again later. ;-)
Oct 6, 2013
Project Member #6 moo...@wwwendt.de
Closing 'Waiting' issues without timely answer
Status: Done
May 2, 2014
Project Member #7 moo...@wwwendt.de
Cleanup Scrumboard
Labels: Milestone-Release2.0

Powered by Google Project Hosting