Results 1 to 3 of 3

Thread: form panel paging is loading correct results on page 1 but not on page 2

  1. #1

    Default form panel paging is loading correct results on page 1 but not on page 2

    Hi,
    I am using paging with ext.form.panel. I have given pageSize as 4 , total 6 records are there, page 1 loads correct results but page 2 instead of showing only 2 results, displays the correct 2 results and 2 of page 1 also. Please help!!

    This is my panel
    resultsPanel=Ext.create('Ext.form.Panel', {
    id: 'gid',
    width: 800,
    height:452,
    store: store,
    renderTo: 'configuration',
    autoDestroy: true,
    items: items,
    dockedItems: [{
    xtype: 'pagingtoolbar',
    store: store,
    dock: 'bottom',
    pageSize: 4,
    displayInfo: true
    }]
    });

    This is store:
    var store = Ext.create('Ext.data.Store', {
    model: 'ConfigurationInfo',
    remoteSort: false,
    //buffered: true,
    autoLoad: true,
    autoSync: true,
    //remoteFilter: true,
    pageSize: 4,
    proxy: {
    type: 'ajax',
    url : 'someMethod',
    reader: {
    type: 'json',
    root: 'ct',
    totalProperty: 'count',
    }
    },
    listeners:{
    load : function(store, records, options){
    count=store.getCount();
    store.data.each(function(item, index, totalItems ) {
    cArr.push(item.data['Name']);
    oc.push(item.data['Desc']);
    rArr.push(item.data['rLabel']);
    ptArr.push(item.data['pDesc']);
    sArr.push(item.data['sCode']);
    gArr.push(item.data['gId']);
    page=item.data['uId'];
    });
    addItems(count,cArr,oc,rArr,ptArr,sArr,gIdArr,page);
    }
    }
    });
    and
    addItems() method is adding dynamic items in the panel.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I've never heard of pagingtoolbar being used with a form panel, as it's usually employed with a grid. There's no pageSize config on a form panel -- generally pageSize should be configured on the store. Is your server script configured to respond with pages of form elements?

  3. #3

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    I've never heard of pagingtoolbar being used with a form panel, as it's usually employed with a grid. There's no pageSize config on a form panel -- generally pageSize should be configured on the store. Is your server script configured to respond with pages of form elements?

    Configuring pageSize in store does not work. I am not getting the pagingtoolbar with store.

Similar Threads

  1. paging grid; need to know page number or start Index of current page
    By Tina G in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 5 Jan 2011, 1:57 AM
  2. Replies: 0
    Last Post: 8 Jun 2010, 12:58 AM
  3. Paging in grid loads first page but 2nd page not loading
    By Tamara Williams in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 18 Feb 2010, 5:39 AM
  4. Not loading totally page in the center region, which this page has a .Js
    By ec-cts in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 3 Feb 2008, 2:56 PM

Tags for this Thread

Posting Permissions

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