Results 1 to 3 of 3

Thread: Tree selection GXT 3.1.2

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-4945 in 4.0.3.
  1. #1
    Ext GWT Premium Member
    Join Date
    Mar 2010
    Posts
    73

    Default Tree selection GXT 3.1.2

    I have added a selection change listener as:

    Code:
    tree.getSelectionModel().addSelectionChangedHandler(new SelectionChangedHandler<Node>() {
    			@Override
    			public void onSelectionChanged(SelectionChangedEvent<Node> event) {
    				// do something
    			}
    		});
    and it gets fired twice for every selection change.

    First from:

    TreeSelectionModel::onMouseDown(MouseDownEvent event)

    and again from:

    TreeSelectionModel::onClick(ClickEvent event)

    Is there a standard way to prevent the SelectionChangedEvent from firing multiple times for the same change?

  2. #2
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    1,165

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    1,165

    Default

    I don't have any magic for preventing this second click since the issue is upstream in the api. An override could be done and maybe fixed if the issue was drilled a bit futher.

Similar Threads

  1. loosing Selection in tree
    By lukaslentner in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 5 Dec 2010, 10:28 PM
  2. Tree node selection (SAME TREE NODE, NOT JUST SELECTION CHANGED)
    By FrankCA in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 16 Nov 2009, 2:02 PM
  3. multi-selection in tree?
    By bgranvea in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 5 Jan 2009, 3:54 AM
  4. Initial tree selection
    By quilleashm in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 24 Jul 2007, 4:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •