Results 1 to 3 of 3

Thread: setMasked called from button handler do not render untl the handler is finished

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    0
      0  

    Default setMasked called from button handler do not render untl the handler is finished

    Hi,

    A bit stucked with that one.
    If I call setMasked from button handler wich is processing for a long time, the mask is rendered when the handler function is finished.

    Is there a way to force paint the mask within the handler ?

    Thx a lot.

    Code:
    //----------------------------------------------------------------------
    Ext.define('ts.view.chartIt', {
        extend: 'Ext.Panel',
        
        initialize: function() {
    	var card = this;
    
    
    	//	...
    	
    	var submit = Ext.create('Ext.Button', {
    	    
    	    handler: function(button, e) {
    		card.setMasked(true);
    		
    		// long retrieval operations
    		
    		card.setMasked(false);
    	});
    
    
    	// ...
    
    
        }
    });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Is it just the time it takes to render the HTML elements and show it?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    11
    Vote Rating
    0
      0  

    Default

    sorry, my proxy read method was not asynchronous by mistake.
    can you please delete the thread ?

    thx for your effort anyway !

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •