TreeGrid in GXT
Posted
by aTory
on Stack Overflow
See other posts from Stack Overflow
or by aTory
Published on 2010-04-22T08:36:54Z
Indexed on
2010/04/22
8:43 UTC
Read the original article
Hit count: 899
Problem
I'm trying to create an asynchronously updating TreeGrid in GXT but encountering issues. The first issue is that I believe the documentation is 'piss poor', at best.. therefore any chance of learning without using 'word of mouth' seems ridiculous. Instead of moaning any further, I shall inform you what I'd LIKE to do and then hopefully you can tell me if what i want is possible.
Example knowledge of Football is recommended here
I have a few Async services where:
- getLeagues()
- getTeams(League)
- getPlayers(League,Team)
- getPosition(League,Team,Player)
I'd like to have a grid where once it renders, it makes a call to 'getLeagues', where by the server will respond with a bunch of leagues that are currently active on the server... these will be the 'root node' of the TreeGrid. Then, from here you can expand each league to show the teams, right down to the players and then their positions.
I'd like to
Create a TreeGrid which has a 'listener' on each node, waiting to asynchronously call the server on request and propogate the tree from here, however I'm not sure if this is possible.
Can anybody advise? I'm finding all these Models, BaseTreeModels, TreeStores nauseating.
© Stack Overflow or respective owner