Results 1 to 2 of 2

Thread: What is the best way to remove buttons from PagingToolBar ?

  1. #1
    Sencha User
    Join Date
    Sep 2014
    Posts
    52
    Answers
    3
    Vote Rating
    -3
      0  

    Default What is the best way to remove buttons from PagingToolBar ?

    I want to remove some button from pagingtoolbar i did something like this :

    Ext.define('aw.grid.PagingToolbar', { extend: 'Ext.toolbar.Paging',
    alias: 'widget.custompaging',
    requires: ['aw.grid.PageLimit'],
    displayInfo: true,
    plugins: 'pagesize',
    listeners: {
    beforerender : function() {
    this.child('#refresh').hide();
    this.child('#first').hide();
    this.child('#last').hide();
    this.child('#displayItem').hide();
    }
    }
    });

    But i`m not sure if its good because i belive there are some methods that are still making the buttons and slows my app

  2. #2
    Sencha User watertrac_dev's Avatar
    Join Date
    Jun 2013
    Location
    Lawrence, KS
    Posts
    48
    Answers
    12
    Vote Rating
    10
      0  

    Default Hiding items in the Ext.PagingToolbar

    Not sure it's the best way, but it does give you the ability to specify what items should be hidden at the time of defining/creating the PagingToolbar.


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
  •