[CLOSED] Refresh button PagingToolBar --> Event ?

  1. #1

    [CLOSED] Refresh button PagingToolBar --> Event ?

    Hi,

    Just need to throw a simple alert when clicking the refresh button on the paging toolbar. Can't figure out how to achieve..
    Can you point me in the right direction ?

    Refreshhandler ? Not working for me..

    Martin
    Last edited by Daniil; May 02, 2013 at 3:40 PM. Reason: [CLOSED]
  2. #2
    Hi Martin,

    I think this should work.
    <AfterRender Handler="this.child('#refresh').on('click', function () { alert('Clicked Refresh'); });">
    It is a PagingToolbar's listener.
  3. #3
    Thanks Daniil,

    That worked.

    Still a question. What happens when using the refresh button ?
    The problem I have is, that the grid becomes empty when using the button. When adding an alert, the alert appears.. but when clicking OK, another event clears my grid.
    I would like to find out which event, so I can change my code.

    Martin
  4. #4
    It reloads the current page. It means that a Store's OnReadData handler is called.

    If there is no such a handler, a Store just makes a request to a page and gets an empty response.
  5. #5
    Thanks Daniil,

    That was the problem..mark as closed

    Martin

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. Disable refresh button in PagingToolBar
    By Kaido in forum 1.x Help
    Replies: 7
    Last Post: Jan 05, 2011, 5:11 PM
  4. Replies: 2
    Last Post: Feb 24, 2010, 5:04 PM
  5. Replies: 0
    Last Post: Jun 13, 2009, 5:34 AM

Posting Permissions