Hello,
I am attempting to change the state of a pane from expanded to collapsed with the following server side code:
// Collapse the splitter if the selected item has no child |
if (selectedItem.Items.Count == 0) |
{ |
rpTopicSubMenuPane.Collapsed = true; |
} |
Basically, I have a splitter with 3 panes. The left pane contains a panelbar, which when clicked updates a treeview in the middle pane and the content in the right pane. I do all this using the Ajax manager and it works great. What I now need to do though with the above code is collapse the pane containing the treeview if the panelbar item clicked has no child nodes.
How do I update either the splitter itself or the pane I want to collapse using the Ajax manager? I currently do this for the treeview and the content:
<telerik:RadAjaxManager ID="CksMasterAjaxManager" runat="server" EnablePageHeadUpdate="False"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="pbTopicMenu"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="tvSectionTree" LoadingPanelID="lpLoading" /> |
<telerik:AjaxUpdatedControl ControlID="rapContent" LoadingPanelID="lpLoading" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="tvSectionTree"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="rapContent" LoadingPanelID="lpLoading" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
But when I tried updating either the pane or the splitter directly in this manner it didn't like it. I also tried putting the splitter within an update panel, but it didn't seem to like this either. What's the best way to do this (and hoipe it makes sense!).
Thanks,
Michael