| Issue 114: | inconsistent behavior for selectMode: 3 in combination with isLazy: true nodes | |
| 7 people starred this issue and may be notified of changes. | Back to list |
Thanks for that plugin, its really fast and feature still easy to use!
When in selectMode: 3, the children of a Node with selected: true and
isLazy: true are not selected when the node is expaned for the first time
and triggering the loading of the child nodes. I think that is inconsistent.
As a workaround this._select(true,false,true); can be called on the child
nodes as shown below.
$("#tree").dynatree({
checkbox: true,
selectMode: 3,
initAjax: {
url: tree_url,
},
onLazyRead: function(dtnode){
dtnode.appendAjax({
url: tree_url,
data: {
"root": dtnode.data.key
},
success: function(dtnode) {
if(dtnode.isSelected()){
$.each(dtnode.childList, function(){
this._select(true,false,true);
});
}
}
});
},
...
});
Sep 19, 2009
In your case: did all loaded child nodes have 'selected' set? Otherwise this may override their parent's selection status. If so, I wouldn't call this inconsistent. It's simply a question how to interpret contradictionary information. Your workaraound is a good solution to change this behaviour. (Another one could be to send the 'selection' events to the server so it can update it's data model.)
Dec 20, 2009
Defered to next update, so drag'n'drop sample is not blocked.
Labels:
Milestone-Release0.5.3
Mar 15, 2010
(No comment was entered for this change.)
Labels:
Milestone-Release0.5.4
May 30, 2010
deferred to 0.5.5
Labels:
Milestone-Release0.5.5
Nov 7, 2010
(No comment was entered for this change.)
Owner:
---
Labels: -Milestone-Release0.5.5 Milestone-Discussion
Oct 3, 2012
Issue 358 has been merged into this issue.
Oct 18, 2012
Issue 365 has been merged into this issue.
Oct 18, 2012
Issue 364 has been merged into this issue.
May 1, 2014
As of 2014 Dynatree is feature frozen. Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that the problem was resolved / the requested featuer is already implemented. Please open a new issue there otherwise: https://github.com/mar10/fancytree
Status:
WontFix
Aug 27, 2014
Issue 491 has been merged into this issue. |
Owner: moo...@wwWendt.de
Labels: -Type-Enhancement Type-Defect Milestone-Release0.5.2