rite
this is what i have tried with AjaxEvent
cmp.ascx
//opening tabs from the tree nodes
<ext:TreeNode Text="Template Selection" NodeID="node1" >
<Listeners>
<Click Handler="#{CMP_Creation}.addTab(#{Template});" />
</Listeners>
</ext:TreeNode>
<ext:TreeNode Text="Layout" NodeID="node4">
<Listeners>
<Click Handler="#{CMP_Creation}.addTab(#{Layout});"/>
</Listeners>
<ext:TabPanel ID="Invisible" runat="server" Hidden="true">
<Tabs>
<ext:Tab ID="Template" runat="server" Title="Templates" Closable="true" AutoScroll="true">
<Body>
<ext:Panel ID="check" runat="server" ButtonAlign="Right">
<Body>
<ext:FieldSet ID="fieldset" runat="server" Title="Use Template">
<Body>
<ext:RadioGroup ID="tmplt_select" runat="server" >
<Items>
<ext:Radio ID="Default" runat="server" BoxLabel="Default" Checked="true">
</ext:Radio>
<ext:Radio ID="custom" runat="server" BoxLabel="Custom">
</ext:Radio>
</Items>
</ext:RadioGroup>
</Body>
</ext:FieldSet>
</Body>
</ext:Panel>
</Body>
</ext:Tab>
<ext:Tab ID="Layout" runat="server" Title=" Layout" Closable="true">
<AjaxEvents>
<Show OnEvent="OpenLayout"></Show>
</AjaxEvents>
</ext:Tab>
cmp.ascx.cs
protected void OpenLayout(object sender, AjaxEventArgs e)
{
if (Default.Checked == true)
{
Layout.AutoLoad.Url="Default.html";
}
else
{
//open some other page
}
}
and this is what i have tried with Custom function
<script type="text/javascript">
var getUrl = function()
{
return "Default.aspx";
};
</script>
<AutoLoad Url="={getUrl()}" />
and it shows the following error
"The resource you are looking for (or one of its dependencies) could have
been removed, had its name changed, or is temporarily unavailable"
thnx