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 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
Status:  WontFix
Owner:  ----
Closed:  May 2014


 
Reported by asr.m...@gmail.com, Aug 26, 2009
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 2, 2009
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Owner: moo...@wwWendt.de
Labels: -Type-Enhancement Type-Defect Milestone-Release0.5.2
Sep 19, 2009
Project Member #2 moo...@wwwendt.de
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
Project Member #3 moo...@wwwendt.de
Defered to next update, so drag'n'drop sample is not blocked.
Labels: Milestone-Release0.5.3
Mar 15, 2010
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release0.5.4
May 30, 2010
Project Member #5 moo...@wwwendt.de
deferred to 0.5.5
Labels: Milestone-Release0.5.5
Nov 7, 2010
Project Member #6 moo...@wwwendt.de
(No comment was entered for this change.)
Owner: ---
Labels: -Milestone-Release0.5.5 Milestone-Discussion
Oct 3, 2012
Project Member #7 moo...@wwwendt.de
 Issue 358  has been merged into this issue.
Oct 18, 2012
Project Member #8 moo...@wwwendt.de
 Issue 365  has been merged into this issue.
Oct 18, 2012
Project Member #9 moo...@wwwendt.de
 Issue 364  has been merged into this issue.
May 1, 2014
Project Member #10 moo...@wwwendt.de
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
Project Member #11 moo...@wwwendt.de
 Issue 491  has been merged into this issue.

Powered by Google Project Hosting