Results 1 to 2 of 2

Thread: "custom" store for in memory objects

  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    122

    Default "custom" store for in memory objects

    Hi,

    I have an array of record objects in memory which I want to (1) load into a store, and (2) insert records into a position in the store. This is not a direct JsonReader response from the server. I can see that with Record.create() I can create my mapping. And with the Store class, there is a data config and a reader config.

    My question is, do I just use a JsonReader for the appropriate Record mapping, but with a meaningless "root", and then load a new Ext.data.Store object? Supposedly the 'data' config of Store is an array.

    Andy

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Answers
    512

    Default

    You can use SimpleStore if you have data in a memory array. See this example source code: http://examples.extjs.eu/?ex=dyntab
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •