« Return to Thread: Clearting Out and re-populating filteringtable
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@...> 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
>
>
--
View this message in context: http://www.nabble.com/Clearting-Out-and-re-populating-filteringtable-tf2779995.html#a7758573
Sent from the Dojo mailing list archive at Nabble.com.
_______________________________________________
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
| Free embeddable forum powered by Nabble | Forum Help |