google-code-export / dynatree

Automatically exported from code.google.com/p/dynatree
1 stars 0 forks source link

Update selectMode at runtime does not work #422

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set selectMode 1  (-> radio)
2. $("#tree").dynatree("option", "selectMode", 2);  (-> checkbox)
3. Checkbox icons are still radio, but click these icon, nodes selected like 
checkbox. 

What is the expected output? What do you see instead?
On update selectMode, icons should be checkboxes.

What version of the dynatree and jQuery are you using?  dynatree1.2.4, 
jquery1.9.1
On what operating system and browser?  Linux, chrome26

Original issue reported on code.google.com by amrocs...@gmail.com on 23 Apr 2013 at 7:30

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 23 Apr 2013 at 6:57

GoogleCodeExporter commented 9 years ago
I have forgotten to write that I changed classNames option also at runtime.
I think updating classNames cause this problem.
ClassNames of all checkboxes were not changed.

Original comment by amrocs...@gmail.com on 24 Apr 2013 at 8:52

GoogleCodeExporter commented 9 years ago
did you try to call tree.redraw()?

Original comment by moo...@wwwendt.de on 24 Apr 2013 at 4:35

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 24 Apr 2013 at 4:35

GoogleCodeExporter commented 9 years ago
I added tree.redraw() to my code, but classNames were not changed to 
"dynatree-checkbox", and icons looks radio.

Original comment by amrocs...@gmail.com on 25 Apr 2013 at 12:38

GoogleCodeExporter commented 9 years ago
Closing 'Waiting' issues without timely answer

Original comment by moo...@wwwendt.de on 6 Oct 2013 at 2:09

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 3 May 2014 at 4:37