Results 1 to 5 of 5

Thread: Ext JS Grid MoveNext button not working first time after loadPage

  1. #1

    Default Ext JS Grid MoveNext button not working first time after loadPage

    Hi,

    I have a Ext JS Grid populated from database.
    We are using grid.getStore().loadPage(2) to load the currentPage.Then the grid goes to that page
    After that the moveNextButton is not firing.When the user clicks on any other button
    then clicks on Next button then it is firing

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

    Default

    With which specific version of Ext JS are you seeing this?

  3. #3

    Default Ext JS Grid moveNext button not working first time after using loadPage

    This is with Ext JS version 4.2

  4. #4

    Default Ext JS Grid moveNext button not working first time after using loadPage

    Hi,


    We have the following store created
    Ext.create('Ext.data.Store', {
    storeId: 'SubmittedBillsStore',
    model: 'SubmittedBillsExt',
    pageSize:10,
    listeners: {
    beforeload: function(store, operation, options){
    //alert('inside');
    document.submittedBillExtForm.txtWBCurrentPage.value =operation.page;
    //alert('inside1');
    }},

    proxy: {
    type: 'ajax',
    url: '/cfc/submittedbillsext.cfc',
    extraParams: {
    returnFormat: 'json',
    method: 'getSubmittedBillsExt'
    },
    limitParam: 'pageSize',
    pageParam: 'pageIndex',


    reader: {
    type: 'cfquery'
    }
    }

    //autoLoad: true
    });

    When we try to the load the store using the below code the store is getting loaded and going into that page but after that moveNext button is not working.When we click on any other button and then click on next button then next button is firing
    Ext.getStore('SubmittedBillsStore').loadPage(WBCurrentPage)

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

    Default

    What kind of reader is 'cfquery'? Can you please post your grid config code?

Similar Threads

  1. Replies: 7
    Last Post: 8 Feb 2017, 3:48 PM
  2. Replies: 6
    Last Post: 5 Dec 2016, 12:49 AM
  3. Replies: 5
    Last Post: 9 Sep 2016, 7:56 AM
  4. Button Action not working from second time.
    By Prasad_Guduri in forum Ext: Q&A
    Replies: 1
    Last Post: 17 Feb 2014, 11:31 AM

Posting Permissions

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