1. #1
    Ext User
    Join Date
    Oct 2009
    Posts
    31
    Vote Rating
    1
    khoivu4477 is on a distinguished road

      0  

    Question How to auto refresh data grid.

    How to auto refresh data grid.


    I have a typical problem that some of you have tried to solved before and I need your helps.

    I have to develop a web application that show a data grid to the user. The data grid is about Stock performance (3 mos, 6 mos, 1year, 5 year and 10 years). So each row is per stock performance. It is typical CRUD application. I have learned how to use DwrProxy (http://www.extjs.com/forum/showthread.php?t=23884) with Ext JS grid and now I am facing my next challenge: to make the grid auto refresh with new stock performance every minute (this interval is configurable).

    Question: can ext js grid trigger any timeout events that make the DataStore to fetch for updated data from the server?

    I appreciate if someone can help to show me the right directions or any ideas on how I can achieve this.

    Thanks

    -K

  2. #2
    Sencha User husniadil's Avatar
    Join Date
    Jul 2009
    Location
    Yogyakarta, Indonesia
    Posts
    45
    Vote Rating
    0
    husniadil is on a distinguished road

      0  

    Default


    use
    Code:
    setTimeout('yourDataStore.reload();', 60000); // 60000 = 1 minute
    becareful, yourDataStore should be accessed globally...
    I wonder if you defined yourDataStore inside onReady function..
    place the variable definition of yourDataStore is outside of onReady function..

  3. #3
    Ext User
    Join Date
    Oct 2009
    Posts
    31
    Vote Rating
    1
    khoivu4477 is on a distinguished road

      0  

    Default


    I will try your suggestion. Thanks

  4. #4
    Ext User
    Join Date
    Oct 2008
    Posts
    19
    Vote Rating
    0
    LutzAlbers is on a distinguished road

      0  

    Default


    Quote Originally Posted by husniadil View Post
    use
    Code:
    setTimeout('yourDataStore.reload();', 60000); // 60000 = 1 minute
    becareful, yourDataStore should be accessed globally...
    I wonder if you defined yourDataStore inside onReady function..
    place the variable definition of yourDataStore is outside of onReady function..
    If you use the following construct then you don't need to globally define the datastore:

    Code:
    setTimeout(function() { yourDataStore.reload(); }, 60000);

  5. #5
    Sencha User husniadil's Avatar
    Join Date
    Jul 2009
    Location
    Yogyakarta, Indonesia
    Posts
    45
    Vote Rating
    0
    husniadil is on a distinguished road

      0  

    Default


    that's good idea

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar