Hybrid View

  1. #1
    Ext User
    Join Date
    Feb 2011
    Posts
    5
    Vote Rating
    0
    rwillmer is on a distinguished road

      0  

    Default Grid Auto-Refresh possible?

    Grid Auto-Refresh possible?


    I've got my first widget working (hurrah!)

    One final thing to get working, I need the data (loaded initially via Ajax) to auto-refresh every minute.

    I can see ways to do this by editing the exported project files, but that means I can't use Ext Designer again, doesn't it?

    Is this possible? Any pointers welcome.

    Rachel

  2. #2
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Hi Rachel,

    First off, congrats

    The exported xds_* files are not necessarily meant to be used verbatim. They are only quick "preview" files, so you can load your exported components into ABC browser to preview them. The only true takeaway from your exported project are your component files (.ui.js and .js files for each component/store), which you would include into your application and use accordingly. The xds_* files do provide a good "jump start" to copy from of course.

    Also, in your project preferences, you can uncheck "Export xds_* Files" and your xds_* files will no longer be exported/overwritten. That of course also means that they aren't updated if you add new top-level components to your project.

    So with all of that in mind, you can of course get a reference to your store and reload it every minute:

    Code:
    var interval = setInterval(function() {
        var store = Ext.StoreMgr.lookup('myStoreId');
        store.reload();
    }, 60000);
    Hope that helps!

  3. #3
    Ext User
    Join Date
    Feb 2011
    Posts
    5
    Vote Rating
    0
    rwillmer is on a distinguished road

      0  

    Default


    Quote Originally Posted by jarrednicholls View Post
    Hi Rachel,

    First off, congrats
    I was well pleased :-)

    Quote Originally Posted by jarrednicholls View Post
    The exported xds_* files are not necessarily meant to be used verbatim. They are only quick "preview" files, so you can load your exported components into ABC browser to preview them. The only true takeaway from your exported project are your component files (.ui.js and .js files for each component/store), which you would include into your application and use accordingly. The xds_* files do provide a good "jump start" to copy from of course.
    Right, that makes sense. It might be worth updating the "Getting Started" pdf with a section that says "How you use it when you've built it"

    Quote Originally Posted by jarrednicholls View Post
    Also, in your project preferences, you can uncheck "Export xds_* Files" and your xds_* files will no longer be exported/overwritten. That of course also means that they aren't updated if you add new top-level components to your project.

    So with all of that in mind, you can of course get a reference to your store and reload it every minute:

    Code:
    var interval = setInterval(function() {
        var store = Ext.StoreMgr.lookup('myStoreId');
        store.reload();
    }, 60000);
    Hope that helps!
    Oh yes! Thanks!

  4. #4
    Sencha User
    Join Date
    Aug 2009
    Posts
    7
    Vote Rating
    0
    ukchaudhary is on a distinguished road

      0  

    Default Ext GWT Grid

    Ext GWT Grid


    How to refresh Ext Gwt Grid after some interval?

  5. #5
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    ukchaudhary, post on the GXT forums

  6. #6
    Sencha User
    Join Date
    Mar 2012
    Posts
    13
    Vote Rating
    0
    extj4newbee is on a distinguished road

      0  

    Default


    I am also trying to find a way to auto Refresh my grid rows in some interval,

    I see you have code snippet, but where is it suposed to be called from ?
    Where should we defing reference to store?

    where should this code be placed
    var interval = setInterval(function() {
    var store = Ext.StoreMgr.lookup('myStoreId');
    store.reload();
    }, 60000);

    ???
    Thank you !!

Similar Threads

  1. Auto refresh of a Grid Data
    By chazzz2473 in forum Ext GWT: Discussion
    Replies: 6
    Last Post: 10 Jun 2011, 12:03 PM
  2. Grid Auto Refresh
    By border9 in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 9 Jun 2010, 5:50 AM
  3. How to auto refresh data grid.
    By khoivu4477 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 1 Dec 2009, 11:55 PM
  4. How to auto refresh grid content every x ms
    By gkassyou in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 21 Aug 2009, 4:30 AM
  5. Auto refresh grid data
    By sayanb in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 6 Mar 2008, 8:47 AM

Thread Participants: 3

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi