Note that there are some explanatory texts on larger screens.

plurals
  1. POExtJS 4.1.1 Infinite Scrolling only loading first page
    primarykey
    data
    text
    <p>I want to get an infinite scrolling grid with extjs4 and a c# backend... i am setting the proxy api in my controller..</p> <p>My Model:</p> <pre><code>Ext.define('appname.model.training.course.TrainingRequirementList', { extend: 'Ext.data.Model', idProperty: 'ID', fields: [ { name: 'ID', type: 'int', convert: null }, { name: 'EmployeeName', type: 'string' }, { name: 'Description', type: 'string' }, { name: 'StatusText', type: 'string' }, { name: 'Status', type: 'int' }, { name: 'Priority', type: 'string' }, { name: 'Date', type: 'string' }, { name: 'Cost', type: 'string' }, { name: 'CanApprove', type: 'bool' }, { name: 'CanRequest', type: 'bool' }, { name: 'ConfirmStatus', type: 'string' }, { name: 'PlanId', type: 'int'} ] }); </code></pre> <p>My Grid:</p> <pre><code>{ xtype: 'gridpanel', flex: 1, padding: '0 10 10 10', minHeight: 200, verticalScroller: { xtype: 'paginggridscroller' }, store: { model: 'appname.model.training.course.TrainingRequirementList', pageSize: 200, autoLoad: true, buffered: true, remoteSort: true, sorters: { property: 'Date', direction: 'DESC' }, proxy: { type: 'direct', extraParams: { total: 50000 }, reader: { type: 'json', root: 'ID', totalProperty: 'TotalCount' }, simpleSortMode: true } }, columns: [{ text: Lang.Main.Employeee, dataIndex: 'EmployeeName', flex: 1, filterable: true }, { text: Lang.Main.Course, dataIndex: 'Description', flex: 1, filterable: true }, { text: Lang.Main.Status, dataIndex: 'StatusText', flex: 1, filterable: true }, { text: Lang.Main.Priority, dataIndex: 'Priority', flex: 1 }, { text: Lang.Main.Date, dataIndex: 'Date', flex: 1 }, { text: Lang.Main.Cost, dataIndex: 'Cost', flex: 1, filterable: true }, { text: Lang.Main.Actions, flex: 1, align: 'center', xtype: 'actioncolumn', width: 50, items: [{ icon: 'Design/icons/cog_edit.png', tooltip: Lang.Main.Open, handler: function (grid, rowIndex, colIndex, item) { this.onGridOpen(grid.getStore().getAt(rowIndex)); } }] }], selModel: { mode: 'MULTI', selType: 'checkboxmodel' }, } </code></pre> <p>setting proxy in controoler:</p> <pre><code>view.grid.getStore().setProxy({ type: 'direct', model: 'appname.model.training.course.TrainingRequirementList', api: { read: SCT.Service.Training.Plan.GetFilteredRequirements }, extraParams: { total: 50000 }, reader: { type: 'json', root: 'ID', totalProperty: 'TotalCount' }, simpleSortMode: true }); </code></pre> <p>additional information about my view:</p> <pre><code>Ext.define('appname.view.training.course.TrainingRequirements', { extend: 'Ext.panel.Panel', require: [ 'Ext.grid.PagingScroller'], </code></pre> <p>My grid is only loading the first 200 rows and the scrollbar is only as big as it would be for 200 rows.. :/ ...</p> <p>the server response with entries like this:</p> <pre><code>{"ID":99,"PlanId":23,"firstname":"name","lastname":"name","Comment":"","Status":3,"ConfirmType":0,"Priority":"entry","DesiredDate":null,"StartDate":new Date(1354107600000),"ActualCost":180,"EstimatedCost":0,"row":201,"TotalCount":8568,"EmployeeName":"some, name","Description":"","StatusText":"state","Date":"28.11.2012","Cost":"EUR 180"} </code></pre> <p>what am i missing???</p> <p><strong>UPDATE</strong></p> <p>When i scroll down the script is loading the second page also.. still nothing more... </p> <p>if you ned more information dont hesitate to ask</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.
    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