1. #1
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default Turnoff loadMask when a data operation is occurring?

    Turnoff loadMask when a data operation is occurring?


    This one is driving me nuts. I have a Panel component in a card layout. The Panel has a DataView that is configured with a Store which has a configured proxy to read the necessary data, and autoLoad is set to true. I am also using paging on the the store so I call store.nextPage() and store .previousPage() as well when working with the panel. During these data operations, I am getting a default animated "Loading" mask that I want to turn off b/c I have my own loading component that is being displayed that works better from a creative standpoint. Where the sam-hell is that default loadMask defined? On the store, the proxy, the panel? And how can I turn it off?

    Thanks!

  2. #2
    Ext JS Premium Member powellke's Avatar
    Join Date
    Sep 2008
    Location
    Huntsville, AL
    Posts
    37
    Vote Rating
    5
    powellke is on a distinguished road

      0  

    Default


    Just set the DataView's loadingText config option to undefined.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    Thanks for that...not sure why that works since the docs say that it defaults to undefined and therefore it should not be showing the mask...but it does. If you manually set property to null on the dataview, it will suppress the load mask, so thanks for that.

    I passed over this since I took the API at face value...guess I should have looked harder at this

    Thanks!

  4. #4
    Ext JS Premium Member powellke's Avatar
    Join Date
    Sep 2008
    Location
    Huntsville, AL
    Posts
    37
    Vote Rating
    5
    powellke is on a distinguished road

      0  

    Default


    The docs are definitely wrong here. The source code for DataView has this:

    loadingText: 'Loading...',

    I find myself looking at their source code much more with Touch than I ever did with ExtJS.

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    Agreed, I need to look at the source more as well...however, in this case I didn't know exactly where to look For some reason, I was assuming this was on the store/proxy/reader somehow. Should have know better!

Similar Threads

  1. Replies: 0
    Last Post: 21 Feb 2011, 2:33 AM
  2. Operation Aborted in IE
    By John Mathew in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 19 Jun 2009, 7:59 AM
  3. Null operation
    By lipe.82 in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 25 Feb 2009, 7:57 AM
  4. set the Ext.data.Connection loadMask
    By firstelement in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 28 Jun 2007, 7:06 AM
  5. loadMask won't hide and data not displayed
    By ntulip in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 18 Jun 2007, 8:14 AM

Thread Participants: 1