May 13, 2011, 4:10 PM
[CLOSED] Mask in code behind
Hello, I have a ViewPort similar to that reported in https://examples1.ext.net/#/ViewPort/Basic.
In the West region I have a MenuPanel in which the click of one of the MenuItem runs some operations defined in CodeBehind (e.g.: FTP Upload or export of database).
What I want to do is to display a Mask that expose the name of the phase that is done in codebehind and so my idea was to use a TaskManager with one Task for each phase
The code I used is as follows, but unfortunately does not work :-(
P.S.: Note that tpMain is the TabPanel name in Center region
In the West region I have a MenuPanel in which the click of one of the MenuItem runs some operations defined in CodeBehind (e.g.: FTP Upload or export of database).
What I want to do is to display a Mask that expose the name of the phase that is done in codebehind and so my idea was to use a TaskManager with one Task for each phase
The code I used is as follows, but unfortunately does not work :-(
P.S.: Note that tpMain is the TabPanel name in Center region
<ext:TaskManager ID="TM1" runat="server">
<Tasks>
<ext:Task AutoRun="false"
OnStart="#{tpMain}.body.mask('Step 1...', 'x-mask-loading');"
OnStop="#{tpMain}.body.unmask();">
</ext:Task>
<ext:Task AutoRun="false"
OnStart="#{tpMain}.body.mask('Step 2...', 'x-mask-loading');"
OnStop="#{tpMain}.body.unmask();">
</ext:Task>
<ext:Task AutoRun="false"
OnStart="#{tpMain}.body.mask('Step 3...', 'x-mask-loading');"
OnStop="#{tpMain}.body.unmask();">
</ext:Task>
</Tasks>
</ext:TaskManager>
and in codebehind:Protected Sub DoSomething()
TM1.StartTask(0)
Threading.Thread.Sleep(5000)
TM1.StopTask(0)
TM1.StartTask(1)
Threading.Thread.Sleep(5000)
TM1.StopTask(1)
TM1.StartTask(2)
Threading.Thread.Sleep(5000)
TM1.StopTask(2)
End Sub
Thanks in advance!
Last edited by Daniil; May 17, 2011 at 2:07 PM.
Reason: [CLOSED]