Customize GWT CellTree Item

307 views
Skip to first unread message

Markandayarushi Pamu

unread,
Apr 17, 2012, 3:13:05 PM4/17/12
to Google Web Toolkit
Hi All,

I have one different requirement in CellTree.

Currently CellTree has once cell for each node, in that cell we can
give the html content and give the events for that node item.

onclick of the whole node anywhere event will fire.

But my requirement is, I want to create 2 buttons like (Edit and
Delete) in the celltree node item, onclick of the 2 buttons I need 2
separate events,
so that I can write Edit and Delete functionality ..

Is this possible with CellTree???

Please Help me ,

Ex: My requirement is like this

Node 1
Node 11 edit delete
Node 12 edit delete
Node 13 edit delete
Node 2
Node 21 edit delete
Node 22 edit delete
Node 23 edit delete



Regards,
Rushi

Thomas Broyer

unread,
Apr 18, 2012, 5:15:04 AM4/18/12
to google-we...@googlegroups.com


On Tuesday, April 17, 2012 9:13:05 PM UTC+2, Markandayarushi Pamu wrote:
Hi All,

I have one different requirement in CellTree.

Currently CellTree has once cell for each node, in that cell we can
give the html content and give the events for that node item.

onclick of the whole node anywhere event will fire.

But my requirement is, I want to create 2 buttons like (Edit and
Delete) in the celltree node item, onclick of the 2 buttons I need 2
separate events,
so that I can write Edit and Delete functionality ..

Is this possible with CellTree???

Yes, either write your own Cell, or use a CompositeCell with a TextCell and 2 ActionCell.

Have a look at http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree which uses a checkbox for selection.
 

Markandayarushi Pamu

unread,
Apr 19, 2012, 1:00:30 AM4/19/12
to Google Web Toolkit
Thx for the reply ............It's workig.........now
> Have a look athttp://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTreewhich uses
> a checkbox for selection.
Reply all
Reply to author
Forward
0 new messages