Gridpanel reload in every 5 mins

  1. #1

    Gridpanel reload in every 5 mins

    Hi,

    We have a aspx page with a single gridpanel in it with AutoSave enabled. It is used by multiple users. How the changes by different users will reflected to others? with preserving the sort and grouping if any.

    We tried setTimeout("GridPanel1.reload();", 300000); but fails when there is sorting in a column. It does not trigger at all.

    Thanks in advance.
    Regards,
    Shijith
  2. #2
    Hi,

    Please try the following code.

    Example
    var store = GridPanel1.getStore(); store.load(store.lastOptions)
    But I'm not sure it will help.
  3. #3

    Solved

    Hi,

    It worked. Thanks a lot.

    This is the code.

    setTimeout("refreshGrid();", 60000);
     
             function refreshGrid() {
                 var store = GridPanel1.getStore(); store.load(store.lastOptions);
                 GridPanel1.reload();
                 setTimeout("refreshGrid();", 60000);
             }
    Regards,
    Shijith
    Last edited by Daniil; Dec 01, 2010 at 8:18 AM. Reason: Please use [CODE] tags
  4. #4
    Hi,

    Glad to help you.

    In the future please wrap any code in [CODE ] tags, see
    http://forums.ext.net/showthread.php...ing-New-Topics
    Last edited by geoffrey.mcgill; Feb 20, 2011 at 12:16 PM.
  5. #5

    Thanks

    Hi,

    Thanks again for showing the directions for posting. I will obey it on next posts.

    Regards,
    Shijith
  6. #6
    Thank you for your understanding.

Similar Threads

  1. [CLOSED] gridPanel.Reload error
    By supera in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 30, 2012, 2:25 PM
  2. GridPanel Filter Preservation after Reload
    By ecerrillos in forum 1.x Help
    Replies: 1
    Last Post: Aug 29, 2010, 8:27 PM
  3. About GridPanel.reload
    By helpme in forum 1.x Help
    Replies: 0
    Last Post: Mar 24, 2010, 12:52 AM
  4. Replies: 4
    Last Post: Jun 15, 2009, 10:45 AM
  5. How to reload a gridpanel without notification?
    By mcdonald in forum 1.x Help
    Replies: 2
    Last Post: May 13, 2009, 10:57 AM

Posting Permissions