Hi,

Does anyone have an example of a toolbar that would add the amounts in the
table?

Thanks.


swapnil.wadagave wrote:
> 
> hi Sanjeev,
> I think you can able to do it using this code,
> 
> extend parent class as DataTable,dont use DefaultDataTable :
> code:
> DatatTable datatable=new DataTable("entries",column,provider,3)
> {
> protected Item newRowItem(String id,int index,IModel model)
> {
> return new OddEvenItem(id,indexmmodel);
> }};
> datatable.addTopToolBar(new HeadersToolBar(datatble,provider));
> datatable.addBottomToolBar(new NavigationToolBar(datatble));
> add(datatable);
> 
> Regards,
> Swapnil
> 
> 
> 
> standon wrote:
>> 
>> I'm using DefaultDataTable with sortable data provider in my project. All
>> the columns are sortable. This  data table has few amount columns, which
>> I need to sum up and show as a last row (TotalRow) at the bottom of the
>> table. This last row (TotalRow) should not be part of sortable data
>> provider. Otherwise, if user clicks on any table column, the table will
>> sort it and put in top (1st row, descending order) of the table.
>> 
>> Basically, the way the column headers are displayed on default data
>> table, I want similar thing to be displayed at the bottom of the table
>> (TotalRow), which I can control it. I don't know how to use
>> addBottomToolbar to achieve this.
>> 
>> If there is a way, pls let me know. If you can provide a code snippet
>> that would be great.
>> 
>> Thanks
>> Sanjeev
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Footer-Toolbar-for-DefaultDataTable-%28wicket-1.3.2%29-tp16995010p25301509.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to