Note that there are some explanatory texts on larger screens.

plurals
  1. POExt JS how to tell PagingToolbar to use parent Grid storage?
    primarykey
    data
    text
    <p>I'm trying to build application that use single config passed by server as non native <strong>JSON</strong> (can contain functions). Everything works fine so far but I'm curious why <strong>PagingToolbar</strong> does not have an option to use parent <strong>Grid</strong> store? </p> <p>I have tried to set store in my config like this, but without success:</p> <pre><code>{... store:Ext.StoreMgr.lookup('unique_store_id') } </code></pre> <p>Is there any way to do so without writing tons of javascript for each view defining store, grid and other items in my application or at least extend functionality of <strong>PaginationToolbar</strong> that use options from parent object?</p> <p>UPDATED, Here is short example of server response (minified)</p> <pre><code>{ "xtype":"viewport", "layout":"border", "renderTo":Ext.getBody(), "autoShow":true, "id":"mainFrame", "defaults":{"split":true,"useSplitTips":true}, "items":[ {"region":"center", "xtype":"panel", "layout":"fit", "id":"content-area", "items":{ "id":"manager-panel", "region":"center", "xtype":"tabpanel", "activeItem":0, "items":[ { "xtype":"grid", "id":"domain-grid", "title":"Manage Domains", "store":{ "xtype":"arraystore", "id":"domain-store", "fields":[...], "autoLoad":{"params":{"controller":"domain","view":"store"}}, "url":"index.php" }, "tbar":[...], "bbar":{ "xtype":"paging", "id":"domain-paging-toolbar", "store":Ext.StoreMgr.lookup('domain-store') }, "columns":[...], "selModel":new Ext.grid.RowSelectionModel({singleSelect:true}), "stripeRows":true, "height":350, "loadMask":true, "listeners":{ "cellclick":activateDisabledButtons } } ] }, } ] } </code></pre>
    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