Thanks for the kind answers. I did go to the Dojo API and found similar
information. The API documents can be even more powerful if links can be set
to usage examples(at least the most common ones). None of the
API's(Microsfot,Java,SQLServer etc) I have seen do this, may be there is a
reason.
----- Original Message -----
From: "Tom Trenka" <
dojo-interest@...>
To: <
dojo-interest@...>
Sent: Thursday, February 01, 2007 6:31 PM
Subject: Re: [Dojo-interest] JSON Object to FilteringTable
>
> I should just convince you to write the docs on the widget :)
>
> trt
>
>
> Ross Thomas wrote:
>>
>>
>> Jayaram Krishnaswamy wrote:
>>>
>>> Does the JSON data always need to go through an intermediary store to
>>> the
>>> filtering table?
>>>
>>
>> Yes. The store is the repository of the data that is displayed by the
>> FilteringTable.
>> Thus they are essentially a single unit in this context. By manipulating
>> the store
>> you are causing changes to be reflected in the table.
>>
>>
>>
>>> Does it needs to be converted into an array before populating the table?
>>> Is it OK to unpack the object and stuff it into a table like one normaly
>>> does populating a table looping through the elements?
>>>
>>
>> The setData() and addDataRange() methods are the most efficient when
>> dealing
>> with multiple updates. If a single object is changed then use the
>> addData() method
>> to add the object or replace it if there is already an entry with the
>> same
>> key.
>>
>> You can use the update() method to update a single field within an
>> element
>> if that
>> is all that changed.
>>
>> All these Store methods invoke events that cause the FilteringTable to
>> update the
>> view accordingly. Thus a sequence of single addData() calls will cause
>> 'n' events.
>> A single addDataRange() call will cause 1 event. Hence the greater
>> efficiency.
>>
>> There is a case for 'chunking' of range updates to maintain UI
>> responsiveness but
>> that is something that is usually discerned on a case by case basis.
>>
>> HTH
>>
>> Ross.
>>
>
> --
> View this message in context:
>
http://www.nabble.com/Re%3A-JSON-Object-to-FilteringTable-tf3158017.html#a8758989> 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>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.411 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007
>
>
_______________________________________________
Dojo FAQ:
http://dojo.jot.com/FAQDojo Book:
http://manual.dojotoolkit.org/DojoDotBookDojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest