[CLOSED] Ext JS 4.1 Store subclasses vs Ext.NET 2 Stores

  1. #1

    [CLOSED] Ext JS 4.1 Store subclasses vs Ext.NET 2 Stores

    Hi,

    As I understand it, Ext JS 4.x provides a (nicely) reworked data package. The Store comes with subclasses such as JsonStore, ArrayStore, and more. Looking at the documentation for Ext JS 4.1, the subclasses do not have any new methods/properties. Instead the code for each subclass seems quite small and just configures a specific reader for you automatically.

    I looked at the Ext.NET 2 code and noticed it doesn't explicitly have its own subclasses of Store. I just want to understand why that is. Looking through your examples, it looks to me that if you wanted to use a JsonStore, it is the same as setting a JsonReader for the proxy that the storey is using. Same if you want to use other types of stores. But you do provide implementations of the various proxies, from the new client side ones (local storage etc) to the server side ones.

    So, am I right in thinking that the need for Store subclasses in Ext.NET 2 isn't as important because you would need to pick the right reader, anyway?

    I should probably explain that in the data chapter, so just want to make sure I get that right!

    Thanks!
    Last edited by geoffrey.mcgill; May 21, 2012 at 4:01 PM. Reason: [CLOSED]
  2. #2
    Well, Reader is used for on the client side therefore you can leave it as empty on the server side (store will be used default reader on the client side)
    ArrayStore, JsonStore and XmlStore are store with preconfigured default type of reader, writer and proxy (ajax for xml and json)

    We decided do not create multiple subclasses of store because it is easy to add AjaxProxy to Store if it is required. Url you need to specify in any way.
    About Reader and Writer, it is also one string of code for Store (and Json reader is default)

    Therefore those subclasess will not make your life more easy
  3. #3
    Makes sense. Thanks for confirming. You can mark this as closed.

Similar Threads

  1. Replies: 0
    Last Post: Jun 15, 2012, 9:06 AM
  2. [CLOSED] Stores and ComboBoxes
    By state in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 05, 2009, 3:07 PM
  3. [CLOSED] ComboBox Stores
    By state in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 20, 2009, 2:43 PM
  4. [CLOSED] Moving between 2 stores
    By CMA in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 17, 2009, 10:55 AM
  5. [CLOSED] Committing several stores
    By pschojer in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 17, 2009, 8:32 AM

Posting Permissions