I have a scenario where only a single sliding pane exists in a sliding zone. When this pane is docked, the tab is unecessary and justs wastes space, so I want to hide it. I have been using the following which has worked untill recently..
Since upgrading to more recent controls, now the pane docked/undocked handlers leave a space between the left and right panes equal to the width of the tabs. (see attached area shown in red). How can I get this to work with the latest controls?
BTW.. I think this ought to be the default behavior. When there is only a single sliding pane, the tabs are unecessary and should be hidden,
function PaneDockedHandler() { |
var slidingZone=$find("<%= szMyZone.ClientID %>"); |
var dockedPane = slidingZone.getPaneById(slidingZone.get_dockedPaneId()); |
if (dockedPane) { |
dockedPane.hideTab(); |
} |
} |
function BeforePaneUndockedHandler(slidingZone) { |
var slidingZone=$find("<%= szMyZone.ClientID %>"); |
var undockedPane = slidingZone.getPaneById(slidingZone.get_dockedPaneId()); |
if (undockedPane) { |
undockedPane.showTab(); |
} |
} |
<telerik:RadSplitter ID="rsWB" |
runat="server" |
Height="100%" |
Width="100%" |
Orientation="Vertical" |
ResizeWithParentPane="False" |
ResizeWithBrowserWindow="True" |
BorderSize="0" |
VisibleDuringInit="False" |
Skin="Windows7" > |
<telerik:radpane runat="server" id="lPane" Scrolling="None" Width="22px" Height="100%"> |
<telerik:RadSlidingZone id="szMyZone" runat="server" width="22px" Height="100%" SlideDuration="250"> |
<telerik:RadSlidingPane id="spProcess" title="Process Properties" runat="server" width="200px" Height="100%" Scrolling="none" OnClientDocked="PaneDockedHandler" OnClientBeforeUnDock="BeforePaneUndockedHandler"> |
My Pane Content |
</telerik:RadSlidingPane> |
</telerik:RadSlidingZone> |
</telerik:radpane> |
<telerik:radpane runat="server" id="rPane" Scrolling="None" Width="100%" Height="100%"> |
Right Pane Content |
</telerik:radpane> |
</telerik:RadSplitter > |
Since upgrading to more recent controls, now the pane docked/undocked handlers leave a space between the left and right panes equal to the width of the tabs. (see attached area shown in red). How can I get this to work with the latest controls?
BTW.. I think this ought to be the default behavior. When there is only a single sliding pane, the tabs are unecessary and should be hidden,