[CLOSED] Gridpanel change page size problem

  1. #1

    [CLOSED] Gridpanel change page size problem

    Hi all!
    In this example:
    https://examples4.ext.net/#/GridPane...rayWithPaging/

    When the gridpanel page size is changed, I see that the store is reload and the method:
    private void BindData()

    is called any times.

    I have a problem with one of my page because the query that populate the gridpanel the first time is slowly (~10/15 seconds) and each times that the users want to change the page size, the query is recalled and is very slowly.

    There is a method for change the page size without repopulate the store datasource?

    Thank you!!

    Stefano
    Last edited by fabricio.murta; Mar 24, 2017 at 3:32 PM. Reason: No user feedback in 7+ days
  2. #2
    Hello Stefano!

    If you use paging with remote data, every time entries per page changes it needs to fetch the data giving the page number and entries per page to the server. This can't be helped.

    So if your query is slow what you can possibly do is local (client-side) paging with remote data like in this example:
    - Local Paging with Remote Data

    If you don't like the two layers of data selection the only solution would be to do local paging completely, what is usually not viable if your grid has too much data (say, more than 1,000 records to display). I believe that in most cases, if your grid won't list up more than 5,000 entries it would be feasible to move all that to client side.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello Stefano!

    It's been some days now since we last replied your inquiry and no feedback from you. Do you still need help with this?

    Notice that we may mark this thread as closed if you don't reply in 7+ days from now. But that won't prevent you from posting back when you have time.

Similar Threads

  1. Replies: 1
    Last Post: Feb 22, 2017, 11:55 AM
  2. [CLOSED] Problem change font size of textfield in Google Chrome
    By xeo4.it in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 30, 2013, 7:26 AM
  3. GridPanel - Change Font Size
    By jlucid in forum 2.x Help
    Replies: 0
    Last Post: Jan 06, 2013, 12:20 AM
  4. [CLOSED] MVC paging - page size problem
    By boris in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 25, 2012, 2:45 PM
  5. [CLOSED] How to change the page size
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 03, 2012, 12:53 PM

Tags for this Thread

Posting Permissions