« Return to Thread: Clearting Out and re-populating filteringtable

Re: Clearting Out and re-populating filteringtable

by Joe la Poutre :: Rate this Message:

Reply to Author | View in Thread

On 12/8/06, MW <martinw@...> wrote:
>
> Damn - I hate that - just posed this and found a solution -
>
> removed
>  - this.fTable.store.clearData();
> and replaced with
>  - this.fTable.columns = [];
>
> is this correct? - or is there a method to clear the columns?

This works just fine for me: this.fTable.store.setData([]);

which may be just a tad cleaner if the columns field was not intended
to be exposed (just guessing here).

Cheers,

Joe.
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

 « Return to Thread: Clearting Out and re-populating filteringtable