Jun 15, 2011, 8:48 AM
Hide Mask after autoload.
Hi,
I have a listener that will show a mask upon clicking on a menuitem. While there's no problem with the mask, when my page within an iframe finish loading, it does not hide the mask. is there anyway i can do this?
Thanks.
I have a listener that will show a mask upon clicking on a menuitem. While there's no problem with the mask, when my page within an iframe finish loading, it does not hide the mask. is there anyway i can do this?
Thanks.
<Listeners>
<ItemClick Handler="#{DirectMethods}.Navigate(menuItem.url);"/>
<Click Handler="Ext.net.Mask.show('test');" />
</Listeners>
[DirectMethod]
public void Navigate(string url)
{
Ext.Net.Panel panel = (Ext.Net.Panel)ExtNet.GetCmp("pMain");
panel.AutoLoad.Mode = LoadMode.IFrame;
panel.AutoLoad.NoCache = true;
panel.AutoLoad.Url = url + "?sid=" + HttpContext.Current.Request.QueryString["sid"];
panel.LoadContent();
}
<ext:Panel ID="pMain" runat="server" Region="Center" Padding="0">
<Listeners>
<AfterRender Handler="Ext.net.Mask.hide();" />
</Listeners>
</ext:Panel>