[CLOSED] PagingToolbar showing Page 1 of 0 in empty page

  1. #1

    [CLOSED] PagingToolbar showing Page 1 of 0 in empty page

    Hi,

    I am using a Paging Toolbar to manage paging for a grid.

    When the grid is empty, the the toolbar shows "Page 1 of 0".

    Is it possible to manage it in a way to either show "Page 0 of 0" or "Page 1 of 1" when the grid is empty?
    Last edited by Daniil; Nov 05, 2014 at 1:08 PM. Reason: [CLOSED]
  2. #2
    I am using the following code to change the value in the input field on store load

    var onload = function (store) {
         if (store.count() == 0) {
                App.pagingToolbar.getInputItem().enable();
                App.pagingToolbar.getInputItem().setRawValue(0);
                App.pagingToolbar.getInputItem().setValue(0);
                App.pagingToolbar.getInputItem().disable();
          }
    }
    However the field doesn't seem to be changing.
  3. #3
    It seems that there was another function that was executing which caused the value to return to its original.

    A simple Delay="1" on the event made it work.

     
    <Listeners>
          <Load Fn="onload" Delay="1"></Load>
    </Listeners>
    This thread can be closed.

Similar Threads

  1. How to set total page for pagingtoolbar?
    By tienthanh in forum 1.x Help
    Replies: 4
    Last Post: Jun 04, 2012, 4:48 AM
  2. [CLOSED] PagingToolbar last page
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 05, 2012, 10:01 AM
  3. How to change Page Count of PagingToolbar
    By ismailkocacan in forum 1.x Help
    Replies: 3
    Last Post: Jul 10, 2011, 5:54 PM
  4. Number of page in PagingToolbar
    By Dominik in forum 1.x Help
    Replies: 1
    Last Post: Dec 16, 2010, 12:16 PM
  5. PagingToolBar - hide - "Page 1 of 2" part?
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Jun 05, 2009, 1:56 AM

Tags for this Thread

Posting Permissions