1. #11
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
    chetana.shetty is on a distinguished road

      0  

    Default sorting is not working in Extjs4.1 full version

    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
    ejerrywest is on a distinguished road

      0  

    Default This works for me

    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar