Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Fill IPickTreeItem with server-side information

    Hi all,

    i want to fill a IPickTreeItem within the GUI with a Tree.
    This Tree is set with data from the server-side via an GWT RPC call.
    The problem now is, that I the IPickTreeItem always just shows "Loading data..." but no data appears.

    The approximate action is like this:

    static Tree tree;
    ..
    tree = new Tree();
    "GWT RPC fills a TreeNode treenode"
    ...

    tree.setRoot(treenode);

    departmentItem = new IPickTreeItem();
    departmentItem.setWidth(80);
    departmentItem.setTitle("title");
    departmentItem.setValueField("name");
    departmentItem.setValueTree(tree);

    I hope someone can help me.
    Thanks a lot in advance,
    Tobi

    #2
    Can you create a standalone case without the RPC call, just manually fill in some a tree with information you would expect to return? If you can't even get that far then post your standalone case.

    Comment


      #3
      The standalone version works fine.
      The problem is just to fill the tree "dynamically" on runtime ....

      Comment


        #4
        Post the code "GWT RPC fills a TreeNode treenode" code part then.

        Comment


          #5
          I know this topic is quite old, but I'm just stuck at the same point.

          I'm trying to fill an IPickTreeItem from a RPC call, just like I've filled lots of TreeGrids before. No errors, just the empty IPickTreeItem as result.

          Again, standalone version (filling it on client side) works fine.

          Did anybody find a solution?

          I'm using SmartGWT 2.2, with Firefox and Safari.

          Thanks.

          Comment


            #6
            Let's put this up again..

            Thanks

            Comment


              #7
              Without a test case demonstrating the problem there's not much we can do here.
              From your description there's nothing inherently different about the use case that works for you (creating the data statically on the client in your source and applying it to a pick tree item) and the case that doesn't (using a GWT-RPC call to fetch data from the server, and applying that to a pick tree item).

              Comment

              Working...
              X