As Igor said,

I create a new instance DataTable (with new Columns) and add form again.

//
 users =  new MyAjaxFallbackDefaultDataTable<Contact>
                                ("users", createColumnsForExcel(),
dataProvider, 10);
 form.remove(users);
 form.add(users)

solved.

Thanks.


12 Ocak 2011 15:08 tarihinde Altuğ Bilgin Altıntaş <[email protected]> yazdı:

> martin's suggestion is right, i've made my own DataTable but still couldn't
> find how to remove (visible = false) some columns from datatable while
> exporting to excel.
>
>
> 2011/1/12 Ernesto Reinaldo Barreiro <[email protected]>
>
> The markup of AjaxFallbackDefaultDataTable comes from Data table and is:
>>
>> <wicket:panel>
>> <thead>
>>  <wicket:container wicket:id="topToolbars"></wicket:container>
>> </thead>
>> <tfoot>
>>        <wicket:container wicket:id="bottomToolbars"></wicket:container>
>> </tfoot>
>> <tbody wicket:id="body">
>>        <tr wicket:id="rows">
>>                <td wicket:id="cells">
>>                        <span wicket:id="cell">[cell]</span>
>>                </td>
>>        </tr>
>> </tbody>
>> </wicket:panel>
>>
>> maybe you can create a MyAjaxFallbackDefaultDataTable and use the markup
>>
>> <wicket:panel>
>> <thead>
>>       <wicket:container wicket:id="bottomToolbars"></wicket:container>
>> </thead>
>> <tfoot>
>>        <wicket:container wicket:id="topToolbars"></wicket:container>
>> </tfoot>
>> <tbody wicket:id="body">
>>        <tr wicket:id="rows">
>>                <td wicket:id="cells">
>>                        <span wicket:id="cell">[cell]</span>
>>                </td>
>>        </tr>
>> </tbody>
>> </wicket:panel>
>>
>> Haven't tried to do the above trick myself but I think It might  work;-)
>>
>> Ernesto
>>
>> 2011/1/12 Altuğ Bilgin Altıntaş <[email protected]>:
>> > Hi,
>> >
>> > I've questions about AjaxFallbackDefaultDataTable, here they are
>> >
>> > 1 - Is it possible to remove NavigationToolbar from top of this because
>> i
>> > want navigation bar at the end  - I want to use addBottomToolbar....
>> >
>> > 2 - I tried  to export the data to excel using classic
>> > ComponentRequestTarget, it works great ! but every FilterToolbar
>> elements
>> > also exported too (Textfields ...) Also I tried to make FilterToolbar
>> > visible before exported to excel like :
>> >
>> > filterToolbar.setVisible(true);
>> > super.respond(requestCycle); -- > exporting to excel
>> > filterToolbar.setVisible(false); -- > recover it
>> >
>> > but it doesn't work (- i made filterToolbar set
>> > setOutputMarkupPlaceholderTag(true) - )
>> >
>> > How can i get rid off  FilterToolbar  while exporting?
>> >
>> > 3 - It is very similar to question #2 - How can i make a CheckBoxColumn
>> > visibility "false" according to case.?
>> >
>> >
>> > Thanks.
>> >
>> > --
>> > *Altuğ*
>> > ** <http://www.kodcu.com>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> *Altuğ*
> *www.kodcu.com* <http://www.kodcu.com>**
>
>


-- 
*Altuğ*
*www.kodcu.com* <http://www.kodcu.com>**

Reply via email to