-
Ext GWT Premium Member
GXT 3.0 - expand and collapse events for TreeGrid
I can't find any way to intercept expand and collapse events for the TreeGrid... am I missing something or is this just not supported?
Thanks
-
Ext GWT Premium Member
Have you tried tree.addBeforeExpandHandler(...)?
-
Ext GWT Premium Member
Thanks for the reply, unfortunately I need to use a TreeGrid not a Tree.
Actually, I would happily use a Tree but I also need it to be editable and can't find any way to make an editable Tree.
Seems like a bit of a catch 22, need an editable Tree use a TreeGrid, need to handle expand and collapse use a Tree. Need both...
-
Ext GWT Premium Member
I think you will be able to use a tree for editable items.
Just write your own cell, based Cell<C>, override onBrowserEvent and onRender with the behavior you want and use setCell(yourCell) to set the Cell inside the tree.
I would give this a try.
-
Sencha User
Is there a reason, expand and collapse events are not supported in a TreeGrid? I also miss that feature.
-
Sencha User
TreeGrid now implements HasBeforeCollapseItemHandlers, HasCollapseItemHandlers, HasBeforeExpandItemHandlers, and HasExpandItemHandlers. Changes are in RC2:
http://www.sencha.com/forum/showthre...-now-available
-
Sencha User
Wow, that was fast - thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules