Note that there are some explanatory texts on larger screens.

plurals
  1. PODojox datagrid with QueryReadStore virtual pagining issue
    primarykey
    data
    text
    <p>I am using dojox.grid.DataGrid along with dojox.data.QueryReadStore. I have the following code on client side:</p> <pre><code>var store = new dojox.data.QueryReadStore({url:"&lt;?php echo $this-&gt;url(array("action"=&gt;"load-plans")) ?&gt;"}); //var store = new dojo.data.ItemFileWriteStore({url:"&lt;?php echo $this-&gt;url(array("action"=&gt;"load-plans")) ?&gt;"}); /*set up layout*/ var layout = [[ {name: 'Plan Name', field: 'title', width: '100px'}, {name: 'User', field: 'email', width: '150px',get: formatEmail}, {name: 'Status', field: 'percentage_completed', width: '100px'}, {name: 'Word Count', field: 'word_count', width: '50px'}, {name: 'Revenue Entries', field: 'revenue_count', width: '50px'}, {name: 'Expense Entries', field: 'expense_count', width: '50px'}, {name: 'Fund Entries', field: 'funds_count', width: '60px'}, {name: 'Total Profit', field: 'total_profit', width: '60px'}, {name: 'Total Funding', field: 'total_funding', width: '60px'}, {name: 'Template Used', field: 'template_title', width: '100px'}, {name: 'Last modified', field: 'updated_at', width: '100px'}, ]]; /*create a new grid:*/ grid = new dojox.grid.DataGrid({ id: 'plan-grid', store: store, structure: layout, escapeHTMLInData: false }, </code></pre> <p>On the server side: $data = $availableMerchants->getList($sort, $order, $start, $limit)->toArray();</p> <pre><code> $dojoData = new Zend_Dojo_Data('id', $data, 'id'); $this-&gt;getResponse()-&gt;setHeader('Content-Range', "items $start-$limit/302"); echo $dojoData-&gt;toJson(); </code></pre> <p>But as I scroll virtual paging, does not work. It only makes the first request with start=0&amp;count=25 and does not make further requests.</p> <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.
    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