You can just add an ActionCell to an IdentityColumn. The following should
work:
// Create an ActionCell that shows more info on click.
Delegate<RowObject> handler = new Delegate<RowObject>() {
public void execute(RowObject object) {
// Popup DialogBox with additional info for RowObject.
}
};
ActionCell<RowObject> actionCell = new ActionCell<RowObject>("Click for more
info");
// Add the Cell to a Column.
Column<RowObject> column = new IdentityColumn(actionCell);
Thanks,
John LaBanca
[email protected]
On Wed, Nov 17, 2010 at 1:49 AM, GregD <[email protected]> wrote:
> I have a CellTable that is going to display excerpts from 65,000 rows
> at about 130 columns per row. I have a couple of ways to try to make
> this manageable for the users. The first is I'm providing them
> various filters they can use to cut down on the number of rows. The
> second is I'm giving them ToggleButtons with which they can select
> which groups of Columns they want to see.
>
> I'd like to add a third way, which is to have some columns that are
> buttons, where clicking on the button brings up a dialog box that
> displays the relevant data for that row. The ActionCell seems like it
> would be prefect for this. Is that correct?
>
> If it is, how do I get a Column with an ActionCell? Do I need to make
> a new class that extends Column, or is there a simpler / better way?
>
> TIA,
>
> Greg
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.