PDA

View Full Version : Load array to listview



rand
21 Jun 2009, 9:54 PM
Hi everyone,

I've an array of data which I need do load into a listview.
Is there any way to do so without having to generate a new store and then load the store to the listview ?

Thanks
Ran

23 Jun 2009, 2:42 AM
?? List view is a consumer of the data store, so no.

Arno.Nyhm
23 Jun 2009, 2:53 AM
but handling stores from Arrays is easy with the Ext.data.MemoryProxy:


http://extjs.com/learn/Manual:Data:Proxies:MemoryProxy
http://extjs.com/deploy/ext/examples/grid/array-grid.html
http://extjs.com/deploy/ext/examples/grid/array-grid.js

Condor
23 Jun 2009, 3:12 AM
I don't see the need for a memoryproxy. You can simply use the data config option or the loadData method of the store.

But in answer to @rand: You always need a store.

rand
27 Jun 2009, 11:34 PM
Thanks, I figured it the hard way :)