1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    9
    Vote Rating
    0
    ananthbhaskar is on a distinguished road

      0  

    Default Manage asynch store call

    Manage asynch store call


    Hi,

    I have two modules in an application, each modules [A & B] are in separate TAB. Both the tab using a common search control to search for data and the respective store will be loaded. I want to disable search & reset button in the common control during loading and enable after stores are loaded.

    pic1.jpg

    Both stores are loading asynchronously. if the A module store loaded first then it will enable the buttons, while B module is still loading the data.

    I need need to enable the search and reset buttons after A& B module stores are loaded.

    Any help on this issue is highly appreciated!!

    Thanks,

  2. #2
    Sencha User
    Join Date
    May 2011
    Posts
    9
    Vote Rating
    0
    ananthbhaskar is on a distinguished road

      0  

    Default


    Please share your view, if you come across similar kind of situation.

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    9
    Vote Rating
    0
    ananthbhaskar is on a distinguished road

      0  

    Default isLoading() example - Ext.data.Connection

    isLoading() example - Ext.data.Connection


    Hi Sencha team, Could you please help me on the above mentioned situation.

    Can anyone share the example for isLoading ()example on Ext.data.Connection.

    Thanks!!

  4. #4
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -13
    darthwes can only hope to improve

      0  

    Default


    Something like:

    Code:
    function twoLoad (store1, store2, cmpArr) {
      var i, len;
      for(i = 0, len = cmpArr.length; i < len; i++) {
        cmpArr[i].disable();
      }
      store1.load({
        callback: function () {
          store2.load({
            callback: function () {
              for(i = 0, len = cmpArr.length; i < len; i++) {
                cmpArr[i].enable();
              }
            }
          });
        }
      });
    }
    }
    Wes

Thread Participants: 1

Tags for this Thread

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