3 Jun 2010 1:16 PM #1
Difference b/w Ext.data.JsonStore and Ext.data.Store
I came across this article which explains the difference b/w Ext.data.JsonStore and Ext.data.Store, which I understand
As I am new to using ExtJS, what are the differences b/w them when it comes to
a) favored way of retrieving JSON
b) better coding standards
c) any performance improvement of using one over the other
3 Jun 2010 3:22 PM #2
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
A JsonStore is just a convenience shortcut for creating a store with JsonReader and HttpProxy.Evan Trimboli
Twitter - @evantrimboli
Don't be afraid of the source code!
4 Jun 2010 10:02 AM #3
To think of it another way: "Store" is the ancestor object; "JsonStore" et al are descendants from that. All of these descendants implement the functionality of a "Store" but they do so in specific ways ... depending one exactly how your client and your server need to talk to one another.
Going one optional step deeper in my explanation ... It so happens that, since most of the actual differences have to do with reading, writing, or encoding of data, many of the differences are implemented by specific "Reader," "Writer," and "Proxy" helper objects. The convenient, "canned" descendants of a Store deal with the task of instantiating and attaching the appropriate helpers to themselves, all behind-the-scenes from you.
4 Jun 2010 10:07 AM #4
By Roland D. in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 26 Apr 2010, 6:58 AM
By gdesjardins in forum Ext.DirectReplies: 0Last Post: 20 Apr 2010, 12:23 PM
By kirandasari in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 6 May 2009, 11:43 PM
By phxx in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Feb 2008, 10:14 AM
By franzisk in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 12 May 2007, 6:46 AM