May 09, 2012, 12:53 PM
[CLOSED] How to reset panel when autoloading a partialview
<ext:Window ID="AccountWindow" runat="server" IDMode="Static" Title="Account Details"
Hidden="true" Modal="true" AutoHeight="true" Width="410px">
<Items>
<ext:Panel ID="AccountPanel" runat="server" IDMode="Static" Border="false" Padding="10">
<AutoLoad Url="~/Account" TriggerEvent="show" NoCache="true" ReloadOnEvent="true" Mode="Merge">
<Params>
<ext:Parameter Name="containerId" Value="AccountPanel" Mode="Value" />
</Params>
</AutoLoad>
</ext:Panel>
</Items>
<Listeners>
<Show Handler="AccountPanel.show()" />
</Listeners>
</ext:Window>
The above is my window with a panel that autoloads a partial view on a show trigger bubble down event chain. I would like to keep the data fresh, meaning that I want to destroy the contents of what was merged but be able to reload the partial view into the AccountPanel again. As it stands, when ReloadOnEvent=true, the panel is not cleared out and the same contents get merged into the AccountPanel again, which causes duplicate components to display.
How do I resolve this?
Last edited by Daniil; May 09, 2012 at 4:42 PM.
Reason: [CLOSED]