« Return to Thread: Re: JSON Object to FilteringTable

Re: JSON Object to FilteringTable

by Sasha Firsov :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
It would be different from you seen in guru answers...

Jayaram wrote:
Blank
Does the JSON data always need to go through an intermediary store to the filtering table?
No. You can fill the HTML in table and NO JSON will be involved at all.

Does it needs to be converted into an array before populating the table?
NO. Even if it is still good idea to use an array, you are able to fill
table store one by one object, which still need to have key field.
store.addData(obj obj, string key)

Rest fields could be added by store.update(Object obj, string fieldName,
Object fieldVal)


Is it OK to unpack the object and stuff it into a table like one normaly does populating a table looping through the elements?
Not sure what you mean. You can fill the table HTML on server as table
row content. The data will be parsed and available in JS via store.
Sasha


_______________________________________________
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: Re: JSON Object to FilteringTable