This is a migrated thread and some comments may be shown as answers.

RadPane - set_collapsed(false) - > not working

1 Answer 43 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Lubomir
Top achievements
Rank 1
Lubomir asked on 26 Sep 2012, 07:14 AM
Hello,
this is my code.. but when i call from javascript function showRightPane - > paneProperties.set_collapsed(false) is not working
<script type="text/javascript">      
    function showRightPane() {
        var splitter = $find("<%= RadSplitter1.ClientID %>");
        var paneProperties = splitter.GetPaneById('<%= paneProperties.ClientID %>');
        paneProperties.set_collapsed(false);
       }
</script>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%"
      Height="800px" Skin="Windows7">
      <telerik:RadPane ID="RadPane1" runat="server" Width="22px" Scrolling="None">
      <telerik:RadSlidingZone ID="RadSlidingZoneTree" runat="server" Width="22px">
      <telerik:RadSlidingPane ID="RadSlidingPaneTree" Title="Tree" runat="server" Width="200px" MinWidth="100" DockOnOpen="true">
          <cee:BrowserTree ID="browserTree" runat="server" />
      </telerik:RadSlidingPane></telerik:RadSlidingZone></telerik:RadPane>
      <telerik:RadSplitBar ID="RadSplitBarTree" runat="server" />
      <telerik:RadPane ID="DrawingPane" runat="server" Scrolling="None">

          <input type="button" onclick="showRightPane()" value="Show Right Pane" />

      </telerik:RadPane>
  <telerik:RadSplitBar ID="RadSplitBarProperties" runat="server" Visible="true"></telerik:RadSplitBar>
  <telerik:RadPane ID="paneProperties" runat="server" Width="22px" Scrolling="None" Collapsed="true">
  <telerik:RadSlidingZone ID="RadslidingzoneProperties" runat="server" Width="22px" ClickToOpen="true" SlideDirection="Left">
      <telerik:RadSlidingPane ID="RadslidingpaneProperties" Title="Properties" runat="server" Width="150px" DockOnOpen="true" MinWidth="100">
          Properties Content
      </telerik:RadSlidingPane>
  </telerik:RadSlidingZone>
  </telerik:RadPane>
  </telerik:RadSplitter>

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 26 Sep 2012, 08:49 AM
Hi Lubomir,

I suppose you want to show the paneProperties on clicking the Button. Try the following JavaScript.

JS:
<script type="text/javascript">
    function showRightPane() {
        var splitter = $find("<%= RadSplitter1.ClientID %>");
        var paneProperties = splitter.GetPaneById('<%= paneProperties.ClientID %>');
       paneProperties.Expand();
    }
</script>

Hope this helps.

Regards,
Princy.
Tags
Splitter
Asked by
Lubomir
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or