Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Buffered Scrolling Grid example and sort bug

  1. #11
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default sorting is not working in Extjs4.1 full version

    Hi.

    I ma using Extjs4.1 full version.I am getting all the data from server at once and loading the data to grid when scrolling.This data is there in cache.In Extjs 4.1 it is there in PageMap.
    code:

    var store = Ext.create('Ext.data.Store', {
    model: 'Student',
    autoLoad: true,
    pageSize: 1000,
    buffered: true,
    proxy: {
    type: 'ajax',

    But when I use bufferred true, the sorting doesnt work properly.It will try to sort only visible rows(54 records).I want to write sorting functionality for whole 1000 records.

    I tried to debug the ext-all.js,inside the sort function:
    sort: function() {
    var me = this,
    prefetchData = me.pageMap;


    store.length-------->54

    prefetchData.getPage(1).length------>10000

    I want to change the sorting functionality where I need to apply sort for prefetchData.getPage(1) records.

    Please help.

    Thx,
    Chetana

  2. #12
    Sencha User
    Join Date
    Oct 2011
    Posts
    35
    Vote Rating
    2
      0  

    Default This works for me

    I also needed client-side sorting in a buffered store. I have a solution worked out here.
    Last edited by ejerrywest; 14 Jun 2012 at 1:15 PM. Reason: simplified

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •