Ext


Go Back   Ext JS Forums > Ext JS Premium Forums > Ext: Premium Help

Reply
 
Thread Tools
  #1  
Old 11-03-2009, 02:51 PM
andynuss andynuss is offline
Ext JS Premium Member
 
Join Date: Jul 2009
Posts: 72
andynuss is on a distinguished road
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
Reply With Quote
  #2  
Old 11-05-2009, 06:49 PM
jsakalos's Avatar
jsakalos jsakalos is offline
Ext JS - Support Team
 
Join Date: Apr 2007
Location: Slovakia
Posts: 13,918
jsakalos will become famous soon enough
Send a message via Skype™ to jsakalos
Default

You can use SimpleStore if you have data in a memory array. See this example source code: http://examples.extjs.eu/?ex=dyntab
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 04:14 PM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.