May 13, 2011, 8:15 PM
Using a javascript function for AutoLoad.TargetControl
In the examples, there is this code:
<ext:Panel ID="ParentPanel" runat="server" Title="Deferred Loading of Internal Panels">
<Items>
<ext:Panel
ID="InnerPanel1"
runat="server"
Title="Panel"
Height="150">
<%--TriggerControl can be js function also--%>
<AutoLoad Url="Child.aspx" Mode="IFrame" ShowMask="true" TriggerControl="#{ParentPanel}" TriggerEvent="Activate" />
</ext:Panel>
</Items>
</ext:Panel>
I've tried using a js function, but apparently i don't know what i'm doing. I want to look at some control properties to decide whether to reload the Panel - something like this:function refreshGrid()
{
if(#{DetailForm}.record.get('ID') != #{HiddenField}.value)return true;
}