Awsome! That was exactly what i was looking for. Cheers, -Mark
On Aug 15, 11:39 am, John LaBanca <[email protected]> wrote: > There is an example in the DataGrid example of > Showcase:http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl... > > Within the footer getValue() mathod, you can get all of the row data and > extract values and do some math. > John LaBanca | GWT Software Engineer | [email protected] > > On Mon, Aug 15, 2011 at 2:30 PM, Mark Wengranowski > <[email protected]>wrote: > > > > > Thanks John! > > > Do you have an example of how i would total all of the cells in a > > particular column and set the footer (Header instance)? > > > On Aug 15, 11:19 am, John LaBanca <[email protected]> wrote: > > > 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.-Hide quoted > > text - > > > > - Show quoted text - > > > -- > > 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.- Hide quoted text - > > - Show quoted text - -- 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.
