Good afternoon,
I'm looking to replace a CollapsiblePanelExtender with a Telerik control. The closest to this seems to be a RadSplitter.
How can I make a horizontal RadSplitter, which contains two panes, change its height to keep one pane at the top as a constant, but expand and collapse with a second pane. I'm using a button in the top pane to control the second pane, rather than a RadSplitterBar.
<telerik:RadSplitter RenderMode="Lightweight" ID="RadSplitter1" runat="server" Width="900px" Orientation="Horizontal">
<telerik:RadPane ID="RadPane1" runat="server" Height="30px" CssClass="collapsePanelHeader">
<div style="padding:5px; padding-left:20px; cursor:pointer; vertical-align:middle;" onclick="ToggleCollapsePane()">
<div style="float:left;">
<asp:Label ID="lblOptionsHdr" runat="server" Text="Filter Options" Font-Bold="True" />
</div>
</div>
</telerik:RadPane>
<telerik:RadPane ID="RadPane2" runat="server" Height="270px" CssClass="collapsePanelContent">
<div id="divContent" style="padding:20px; vertical-align:middle;">
<table style="vertical-align:top; width:100%; border-spacing:5px; padding:5px;">
<tr>
<td>
......... several filter options (dropdown lists, radiobuttons)
</td>
</tr>
</table>
</div>
</telerik:RadPane>
</telerik:RadSplitter>
When the <div> in pane 1 is clicked it should toggle pane 2, and the splitter adjust its height accordingly:
function ToggleCollapsePane() {
var splitter = $find("<%= RadSplitter1.ClientID %>");
var pane = splitter.getPaneById("<%= RadPane2.ClientID %>");
if (pane.get_collapsed()) {
pane.expand();
splitter.resize(900, 303);
} else {
pane.collapse();
splitter.resize(900, 33);
}
}
Is what I'm trying to achievable? Or is there another Telerik control that does this?
Kind regards,
Richard