Feb 15, 2017, 6:27 PM
Bug in Panel Loader
Hello.
I have this in aspx:
To resolve this, either I leave the panel> Collapsed="false" <, or I add these lines:
tks for help;
I have this in aspx:
<ext:Panel ID="pnAddMercadoria" runat="server" Title="Adicionar Mercadorias" TitleAlign="Right" Height="250" Collapsible="true"
Collapsed="true" IconAlign="Right" Frame="true" Icon="Add">
<Loader
runat="server"
Url="addMercadoria.aspx"
Mode="Frame"
DisableCaching="true">
<LoadMask ShowMask="true" />
</Loader>
<Listeners>
<Expand Handler="this.reload();" />
<Collapse Handler="this.clearContent();" />
</Listeners>
</ext:Panel>
in .apsx.cs: protected void cbOperacao_DirectChange(object sender, DirectEventArgs e)
{
LoadContents("fatAddMercadoria.aspx"); //for example.
}
protected void LoadContents(string vUrl)
{
this.pnAddMercadoria.LoadContent(new ComponentLoader()
{
Url = vUrl,
Mode = LoadMode.Frame,
DisableCaching = true
});
}
It turns out that this is giving problem, when calling the procedure the panel is only with the mask of "loading" and can not expand it, the attached image helps to understand.To resolve this, either I leave the panel> Collapsed="false" <, or I add these lines:
protected void LoadContents(string vUrl)
{
this.pnAddMercadoria.LoadContent(new ComponentLoader()
{
Url = vUrl,
Mode = LoadMode.Frame,
DisableCaching = true
});
this.pnAddMercadoria.Collapsed = false; //<<<<<
this.pnAddMercadoria.Collapsed = true; //<<<<<
}
But this is bad, because it is loading every time the event fires, and I would like it to be loaded only when the user has expanded the panel.tks for help;