Note that there are some explanatory texts on larger screens.

plurals
  1. POExtJs 4.2.0.663 using Searchfield results in Exception "PageMap asked for range which it does not have"
    primarykey
    data
    text
    <p>because ExtJS 4.2 seems to have a bug in using filters on an buffered grid (infinite grid), i rewrote my code and now i'm just using a simple search field to let the user search all over the grid's data. as long as something is found it works perfect but if nothing's found ext crashes with the exception "Page Map asked for range which it does not have"</p> <p>my javascript "includes"</p> <p> </p> <pre><code>&lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/filter/Filter.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/filter/BooleanFilter.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/filter/DateFilter.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/filter/ListFilter.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/filter/NumericFilter.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/filter/StringFilter.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/menu/ListMenu.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/menu/RangeMenu.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/FiltersFeature.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/ext-4.2.0.663/examples/ux/grid/TransformGrid.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/ASDB4/js/ext-4.2.0.663/examples/ux/form/SearchField.js"&gt;&lt;/script&gt; </code></pre> <p>my store:</p> <pre><code>this._store = Ext.create('Ext.data.Store', { storeId: 'ActivityLogStore', model: 'ActivityLogModel', remoteGroup: true, autoDestroy: true, buffered: true, remoteSort: true, leadingBufferZone: 300, pageSize: 100, autoLoad: true, proxy: { type: 'ajax', url: '~myurl~', reader: { root: 'data[0].sActivityLogsArr', totalProperty: 'data[0].totalcount' }, simpleSortMode: true, simpleGroupMode: true, groupParam: 'sort', groupDirectionParam: 'dir', filterParam: 'searchString', encodeFilters: function (filters) { return filters[0].value; } }, listeners: { // This particular service cannot sort on more than one field, so if grouped, disable sorting groupchange: function (store, groupers) { var sortable = !store.isGrouped(), headers = grid.headerCt.getVisibleGridColumns(), i, len = headers.length; for (i = 0; i &lt; len; i++) { headers[i].sortable = (headers[i].sortable !== undefined) ? headers[i].sortable : sortable; } }, beforeload: function () { // remove any selections - otherwise store loading crashes (another bug in extjs ...?) Ext.getCmp('activityLogmanagergrid').getSelectionModel().clearSelections(); }, // This particular service cannot sort on more than one field, so if grouped, disable sorting beforeprefetch: function (store, operation) { if (operation.groupers &amp;&amp; operation.groupers.length) { delete operation.sorters; } }, load: function () { Ext.getCmp('activityLogmanagergrid').verticalScroller.scrollTo(0); } } }); </code></pre> <p>my searchfield, located at the toolbar:</p> <pre><code> this._moduleToolbar = { xtype: 'toolbar', itemId: 'activityLogmanagerToolbar', items: [{ iconCls: 'icon-arrow_refresh', text: '@menu_reload@', itemId: 'btnReload', scope: this, handler: function () { // reset list display to top to avoid corrupted display Ext.getCmp('activityLogmanagergrid').store.load(); } }, { iconCls: 'icon-cross', text: '@menu_deleteAllActivityLog@', itemId: 'btnDeleteAll', scope: this, handler: this.DeleteAllActivityLog }, '-&gt;', { width: 300, fieldLabel: 'Search', labelWidth: 50, xtype: 'searchfield', store: scope._store } ] }; </code></pre> <p>please help ...</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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