Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:13:21+00:00 2026-05-26T04:13:21+00:00

I have a grid with paging toolbar at the bottom and a ‘Load’ button

  • 0

enter image description here

I have a grid with paging toolbar at the bottom and a ‘Load’ button at the top which can be used to load records in the grid.

Thus, initially there are no values present in the grid, but in such condition too the paging toolbar displays Page 1 of 1, and also the icons to go to ‘next’ or ‘last’ page are enabled.

Due to this, when user clicks any of these icons, then, though the records are not loaded but internally the values of ‘page’ and ‘start’ are set as NaN and if then user clicks at ‘Load’ button then these NaN values get passed to the server which is not what is expected.

That is, ideally, it should pass page=0&start=0 where as it passes page=NaN&start=NaN. The server doesn’t recognize these values and throws error.

One quick fix for this is the modification of the code at the server side, but currently that is beyond the scope of our team work and thus I was wondering that how could following be acheived:

Q) How to disable ‘next’, ‘last’ icons at paging toolbar when the grid has no records?

Or,

Q) How to modify the values of ‘page’ and ‘start’ variables before loading the store so that we can pass 0 instead of NaN?

I tried accessing these parameters in beforeload event of the grid store, but there I could find the properties like – startParam or pageParam – displaying the name of parameter, but couldn’t locate any method of accessing/modifying there values.

Does anyone have an idea on this?

Thanks in advance.

PS: ExtJS Version used is 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:13:21+00:00Added an answer on May 26, 2026 at 4:13 am

    One possible solution could be using

    store.loadPage(1);
    

    instead of store.load();.

    The second possible solution is to make toolbar initialy disabled and enable it when data is loaded:

    var grid = Ext.create('Ext.grid.Panel', {
        // ...
        store: store,
        dockedItems: [{
            xtype: 'pagingtoolbar',
            store: store,
            dock: 'bottom',
            disabled: true
        }]
    });
    store.on('load', function(){
      grid.down('pagingtoolbar').enable();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid, which I want to add a button at the top
Say you have a Grid which is having paging, editing and extra, I usually
I have an Extjs Grid with a Paging toolbar. I need to pass the
I need to create my own grid which will have customized paging and sorting.
i have a paging grid and some function that load a new store to
Hi I have a grid which used to display call details. It is displaying
I have a grid bound to a BindingSource which is bound to DataContext table,
I have GridView and this grid has setup paging, but this paging not show
I have a view with telerik grid. Ihave a controler code which I am
I have an EXTJS paging grid with checkbox selection model. I want to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.