[TreeGrid/RPC] An empty tree is displayed.

Hi,

I’m very new to SmartGWT. I’m using samples to create an explorer tree but I’m running in to issues similar to that mentioned in the thread http://forums.smartclient.com/showthread.php?t=3538 except I’m not using ListGrid.
Using ShowcaseData as an example, I’m trying to do something like this to create a tree however the code generates an empty tree without an error.

private ExplorerTreeNode[] getData() {
    	
       
/**load data from GWT RPC call instead of Hard coding that returns an array *of String name just for testing.
*/
loadData();

        if (data == null) {
            data = new ExplorerTreeNode[]{
            	
                    new ExplorerTreeNode(datas[0], "featured-category", "root", "silk/house.png", null, true, idSuffix)
            };
        }
        return data;
    }
private String[] datas;
void loadData() {
        AsyncCallback callback = new AsyncCallback()
        {
          public void onSuccess( Object result )
           {
        	  datas=(String[])result;
              }
           public void onFailure( Throwable ex )
           {
              MessageBox.alert( "Error", "Error while loading data" );
          }

        };
        service.getData( callback );
     }

I don’t want to use setDataUrl or xml etc and would prefer to use RPC methods to create the tree.
Thanks for the help.
Jyot

Resolved - [TreeGrid/RPC] An empty tree is displayed.

Downloaded the latest build and issue is resolved. Thank you for creating such an awesome library.

Great!

PS : if you’d like to edit the subject to indicate it has been resolved, you need to do so for the very first post.