Array grid paging refresh stay on page

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Array grid paging refresh stay on page

    Hello,
    following this example is it possible that the user stays in the same page after refreshing the grid and not redirected in the first page?
  2. #2
    Hello!

    Yes, it is possible. But you'll have to write your own refresh handler to switch back to the page -if- it is still available after the data refresh.

    You'll have to specify a RefreshHandler="<your_code_here>" in the paging toolbar component.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello,

    thank you! I solved it like this:

    <ext:PagingToolbar runat="server" RefreshHandler="handleRefresh();"  />
    
    var handleRefresh = function () {
                var page = App.UsersGridPannel2.getStore().currentPage
                #{DirectMethods}.RefreshGrid(page);
            }
    
    
    [DirectMethod]
            public void RefreshGrid(int pagenumber)
            {
                storeUsers2.Reload();
                UsersGridPannel2.GetStore().LoadPage(pagenumber);
            }
  4. #4
    Hello @atroul!

    Glad it helped, and thanks for sharing the solution that worked for you! It looks very nice!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Reload page and stay in this current page
    By kdms in forum 3.x Help
    Replies: 1
    Last Post: Mar 24, 2015, 11:39 AM
  2. Replies: 2
    Last Post: Sep 25, 2014, 12:20 PM
  3. Replies: 6
    Last Post: Mar 31, 2014, 1:26 PM
  4. Replies: 0
    Last Post: Jul 15, 2013, 8:34 AM
  5. Replies: 4
    Last Post: Aug 09, 2011, 8:32 PM

Tags for this Thread

Posting Permissions