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

Re: Clearting Out and re-populating filteringtable

by sos :: Rate this Message:

Reply to Author | View in Thread

The reason for this is that when you assign value field as the beginning, the FilteringTable sets the valueField on it's "store" element, and from then on uses that (see the postCreate function).  You should instead set the FilteringTable's store.keyField element, or set them both.

Shane

On 08/12/06, MW <martinw@...> wrote:

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


_______________________________________________
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