Disable refresh button in PagingToolBar

  1. #1

    Disable refresh button in PagingToolBar


    Hi,

    is it possible to disable the refresh button in the gridpanel's PagingToolBar?
    I would like to have only the paging buttons, without refreshing.

    Thanks a lot.
  2. #2

    RE: Disable refresh button in PagingToolBar

    Add this listener:

                                    <Listeners>
                                    <Render Handler="this.loading.disable();" />
                                    </Listeners>
  3. #3

    RE: Disable refresh button in PagingToolBar

    I have added the listener but the button refresh continues showing and it's enabled.

    
    
    
    
    <BottomBar>
    
    
    <ext:PagingToolBar ID="PagingToolBarReservation" runat="server" PageSize="10" StoreID="storeReservationResult" AfterPageText="" FirstText="<%$ Resources: lblFirst %>" LastText="<%$ Resources: lblLast %>" NextText="<%$ Resources: lblNext %>" PrevText="<%$ Resources: lblPrevious %>" BeforePageText="<%$ Resources: lblPage %>" RefreshText= "<%$ Resources: lblRefresh %>" EmptyMsg="<%$ Resources: lblEmptyMsg %>" DisplayMsg="<%$ Resources: lblDisplayMsg %>">
    
    
    <Listeners>
    
    
    <Render Handler="this.loading.disable();" />
    
    
    </Listeners>
    
    
    </ext:PagingToolBar>
    
    
    </BottomBar>
  4. #4

    RE: Disable refresh button in PagingToolBar

    Hi,

    I don't think that 'disable' will work because PagingToolbar manages disable/enable of buttons. Just hide that button
    <Render Handler="this.loading.hide();" />
  5. #5

    RE: Disable refresh button in PagingToolBar

    How can i hide this button if the grid is empty and has not yet been loaded?

    Thanks
  6. #6

    RE: Disable refresh button in PagingToolBar

    is there an event listener for the paging toolbar's refresh button?
  7. #7
    for 1.0 RC 1
     
    <Listeners>
    <Render Handler="this.refresh.hide();" />
    </Listeners>
  8. #8
    Hi,

    For RC1 please use HideRefresh property of the toolbar

Similar Threads

  1. [CLOSED] PagingToolbar Refresh Handler
    By jthompson in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 02, 2011, 7:28 PM
  2. Replies: 4
    Last Post: Jan 25, 2011, 9:26 AM
  3. [CLOSED] Refresh PagingToolbar using Javascript
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 20, 2010, 8:33 AM
  4. Replies: 2
    Last Post: Feb 24, 2010, 5:04 PM
  5. Replies: 0
    Last Post: Jun 13, 2009, 5:34 AM

Posting Permissions