Note that there are some explanatory texts on larger screens.

plurals
  1. POsencha touch accordion list not loading data
    primarykey
    data
    text
    <p>I can't figure out why my data won't load to my AccordionList element from here: <a href="https://github.com/kawanoshinobu/Ext.ux.AccordionList" rel="nofollow">https://github.com/kawanoshinobu/Ext.ux.AccordionList</a></p> <p>I'm creating it within a panel like so:</p> <pre><code>{ xtype: 'accordionlist', store: Ext.create('Rks.store.Bcks'), flex: 1 }, </code></pre> <p>It calls a store which is defined like so:</p> <pre><code>Ext.define('Rks.store.Bcks', { extend: 'Ext.data.TreeStore', requires: ['Rks.model.Bck'], config: { itemId: 'bks', model: 'Rks.model.Bck', defaultRootProperty: 'items', proxy: { type: 'ajax', url: 'path/to/ajax', }, autoLoad: false, listeners:{ load: function( me, records, successful, operation, eOpts ){ console.log("data loaded", records); } } } }); </code></pre> <p>When I call the view which contains the accordion, the console logs what appears to be a good object:</p> <pre><code>items: [{bck_id:3, author_id:1, title:test, items:[{c_id:2, bck_id:3, title:choice1, leaf:true}]}] </code></pre> <p>But nothing shows up. The panel is empty and no accordion items show.</p> <p>However, when I replace the proxy with inline JSON, everything looks fine:</p> <pre><code>Ext.define('Rks.store.Bcks', { extend: 'Ext.data.TreeStore', requires: ['Rks.model.Bck'], config: { itemId: 'bks', model: 'Rks.model.Bck', defaultRootProperty: 'items', root: { items: [ { bck_id: 1, author_id: 1, title: 'bck1', items: [ {c_id: 1, bck_id: 1, title: 'choice1', leaf: true} ] } ] } autoLoad: false, listeners:{ load: function( me, records, successful, operation, eOpts ){ console.log("data loaded", records); } } } }); </code></pre> <p>Here the items show up in the accordion. I can't figure out why the second example works and the first doesn't. Is there something special I should be doing when calling the store proxy for Accordion?</p> <p><strong>UPDATE</strong>: I have managed to get the accordion list to display data, but when I change the url of the store and reload it, the store reloads but the accordion list does not update. The accordion list continues to display the data it receives from the first URL, not from reloads with modified URLS.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload