Jump to content

Recommended Posts

Posted

Hi,

 

TUniScreenMask works very well, the problem is when you have many buttons, menus (here does not supported),...

Exists any way for show a screenmask for all button click,... ? Actually I have a TUniScreenMask per button.

 

Regards

Posted

Hi,

 

TUniScreenMask works very well, the problem is when you have many buttons, menus (here does not supported),...

Exists any way for show a screenmask for all button click,... ? Actually I have a TUniScreenMask per button.

 

Regards

 

Hi KingOrmon,

 

I put the code above on MainForm.Scripts property:

 

 

Ext.Ajax.on('beforerequest',

function(conn, request){

if (request.e == 'click') {

Ext.getBody().mask('Wait, please...', 'Loading')

}

},

Ext.getBody()

);

 

 

Ext.Ajax.on('requestcomplete', Ext.getBody().unmask, Ext.getBody());

Ext.Ajax.on('requestexception', Ext.getBody().unmask, Ext.getBody());

 

 

Ps.: It even works with menus!

 

Regards

Posted

Can check belong to menu?

 

You can try to check request.params property to identify anothers properties on request. But be careful, because some requests do not pass this parameter in the same format.

  • 2 weeks later...
  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...