If you pass a Header instance as the footer, it will be updated every time
you push new row data.  You can also refresh footers manually using
CellTable#redrawFooters().

There is also a pending change that allows you to fully customize headers
and footers:
http://gwt-code-reviews.appspot.com/1499808/
John LaBanca | GWT Software Engineer | [email protected]




On Mon, Aug 15, 2011 at 12:10 PM, Mark Wengranowski <[email protected]
> wrote:

> Anyone?
>
> On Aug 9, 1:05 pm, Mark Wengranowski <[email protected]> wrote:
> > Hi Everyone,
> >
> > I'm trying to add a footer to my CellTable and am having a hard time
> > finding information on creating a footer that would update dynamically
> > based on the cells in that column.
> >
> > i.e. I want the last row in my cell table to have a total footer.
> >
> > Adding static text is easy as you just pass an extra argument to the
> > constructor:
> >        cellTable.addColumn(qty, "Qty",Integer.toString(totalQty));
> >
> > Thats not what want though.
> >
> > If i don't set totalQty to a value before adding the column to the
> > CellTable then it shows up as 0. If i try using the funtion
> > CellTable.redrawFooters() it does not update the footer with the
> > updated variable value for totalQty.
> >
> > I see in the documentation that footers are supposed to update
> > automatically when set up as a type Header.
> >
> > I can' t find any source examples so if anyone could point me in the
> > right direction or post an example that would be great.
> >
> > Thanks,
> > -Mark
>
> --
> 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.
>
>

-- 
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.

Reply via email to