zixzigma
unread,Feb 3, 2011, 10:33:41 PM2/3/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Hello Everyone,
Could you please provide some tips on how to implement Collapsible Rows in CellTable ?
for example, clicking on a Row, result in Row to be expanded, and display some custom widget in it.
so far, I was able to put a custom widget (label, button, text box) within the cell,
this works fine. I then wanted to show/hide this widget, as user clicked on the cell.
my custom cell handles click event, and adds/removes css style (display:none), as a result I can show/hide my custom widget,
but the problem is, since I am handling click event, when the user wants to do
something meaningful with the widget inside the row, the row is closed,
(for example entering something inside the textbox, causes the row to close (hide/collapse))
I used event.preventDefault(), to stop the click event from firing once the row is expanded (preventing it from hiding, so that user can enter text into textbox),
but cannot reverse it (remove it so that it can be closed).
anyways I tried many many unconventional solutions, including putting a basic Tree and StackPanel inside a Custom Cell !
none of them worked : (
I know that I am not doing things the right way,
do you have any tips on how to implement this feature ? Expandable/Collapsible Rows inside a CellTable ?
do you think this feature will be added in later releases of GWT ?
Thank You