The example treegrid implementation isn t exactly crystal clear. I ve got a grid like:
ID Name Val
+ 1 Foo 45
+ 2 Bar 30
Which I m populating from a json object. When you click on the +
, I want to go to the server and get the data associated with that row s id:
ID Name Val
- 1 FooBar 45
- Foo 20
- Bar 25
+ 2 Baz 30
Are there any examples that show that more clearly? Also, the ones I m seeing seem to want you to fetch the whole data set in one go. Or is "adding" and "subtracting" rows a better way to go for this case?
Update: thinking a little further, I don t think the add/subtract method would be good, because it would kill sorting.