Thanks for that Joe.
Just come accross another problem though:
this
this.fTable.valueField = data["key"];
doesnt seem to be working, the returned data returns the key [ valueField] thats unique in the returned dataset.
If it set it when the filtertable is instantiated ...
_this.fTable = dojo.widget.createWidget("FilteringTable",{alternateRows:"true", valueField: "ID"},_this._fTable);
it works fine, but I dont want this to happen. I want the returned dataset to set the vaueField - can the valueField only be specified when the widget is created?
any help muchly appreciated.
Martin.
Joe la Poutre wrote:
On 12/8/06, MW <martinw@northern-lights.co.uk> 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/FAQDojo Book:
http://manual.dojotoolkit.org/DojoDotBookDojo-interest@dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest