Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: [FNR] Bug in asyncronous tree in gxt2.2 RC1

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11

    Default

    Hello,

    i have downloaded the 2.2.0 release it works better but i still have a little problem.The icon doesn't stay with wait icon but doesn't update to open icon ie after open an empty folder no icon is displayed.
    Do i have missed something?
    Thanks.

    Frdric BASTIDE

  2. #12
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    Can you please post a testcase that implements EntryPoint for this?

  3. #13
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    It looks like this for me:


    The empty but open nodes return an empty arraylist.

  4. #14

    Default

    And for me:
    before expand:
    state1.jpg

    when expand 1234 folder:
    state2.jpg

    i take a look in my code and give you news later.

    Frdric

  5. #15
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    You need to override the hasChildren method of the TreePanel. Else there is no way we can know, that it is not a leaf.

  6. #16

    Default

    Thanks a lot.
    It's what i have done and it works fine but:

    why the method hasChildren of TreePanel ask haschildren of loader only if node is not loaded?
    I think it would be better TreePanel always ask to the loader:

    protected boolean hasChildren(M model) {
    TreeNode node = findNode(model);
    if (loader != null) { //&& !node.loaded) {
    return loader.hasChildren(node.m);
    }
    if (!node.leaf || store.hasChildren(node.m)) {
    return true;
    }
    return false;
    }

    in my case it works but perhaps i don't see all ;=))

    What do you think about to do this in TreePanel class of GXT?

    Frdric

  7. #17
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    This cannot be done as this is a major change in behaviour. Simple override the hasChildren method of the TreePanel.

  8. #18

    Default

    Ok no problem but i'm still thinking it would be more logical...

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [FNR] TimeField bug?
    By is84092 in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 12 Apr 2010, 5:02 AM
  2. [FNR-14] Grid disableTextSelection Bug
    By anton_ds in forum Ext GWT: Bugs (2.x)
    Replies: 5
    Last Post: 22 Mar 2010, 1:47 PM
  3. [FNR] HtmlEditor tooltip bug
    By baskor in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 17 Mar 2010, 1:52 AM
  4. [FNR-9][2.1.1] BorderLayout bug
    By micgala in forum Ext GWT: Bugs (2.x)
    Replies: 4
    Last Post: 3 Mar 2010, 6:06 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
  •