get_docked always returns TRUE?

3 posts, 1 answers
  1. Martin
    Martin avatar
    41 posts
    Member since:
    Sep 2013

    Posted 04 Aug 2008 Link to this post

    Hi

    I am trying to use the RadSlidingPane client-side method - get_docked
    however it always seems to return TRUE?

    ie. var isDocked = slidingZone.getPaneById("<%=RadSlidingPaneCriteria.ClientID%>").get_docked;

    get_dockedPaneId seems to work OK
    var DockedID = slidingZone.get_dockedPaneId();

    Am I missing something?

    Regards

    Martin

    -----------------------------------------------------------
    -- Test code
    -----------------------------------------------------------
    <script type="text/javascript" language="javascript">

        // Test to see if a Pane is Docked
        function Test()
        {
            var slidingZone = $find("<%= RadSlidingZone1.ClientID%>");
           
        var isDocked = slidingZone.getPaneById("<%=RadSlidingPaneCriteria.ClientID%>").get_docked;
           
        if (isDocked)
            {
                alert("PANE IS DOCKED");
            }
            else
            {
                alert("NOT DOCKED");
            }
        }
    </script>

    -----------------------------------------------------------
    -- ASPX code
    -----------------------------------------------------------

            <input id="Button1" type="button" onclick="Test();" value="Test" />

            <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="660px" Width="800px" Skin="Telerik" >

                <telerik:RadPane ID="RadPaneLeft" runat="server" Width="22px" Scrolling="None" Height="100%" >

                <telerik:RadSlidingZone  ID="RadSlidingZone1" runat="server" Width="22px" BackColor="White" Height="100%" SlideDirection="Right" SlideDuration="10" ClickToOpen="True" >

                    <telerik:RadSlidingPane ID="RadSlidingPaneCriteria" runat="server" Title="Criteria" Height="600px" Scrolling="Y" Width="300px" TabView="ImageOnly" IconUrl="~/Reports/Images/Search.png" >
                    </telerik:RadSlidingPane>

                    <telerik:RadSlidingPane ID="RadSlidingPaneHelp" runat="server"
                        Title="Help" Width="300px" IconUrl="~/Reports/Images/Help.png" TabView="ImageOnly" >
                    </telerik:RadSlidingPane>

                </telerik:RadSlidingZone>

                </telerik:RadPane>

                <telerik:RadSplitBar ID="RadSplitBar1" runat="server" EnableResize="False" Visible="True" />


                <telerik:RadPane ID="RadPaneRight" runat="server">
                </telerik:RadPane>

            </telerik:RadSplitter>

  2. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 04 Aug 2008 Link to this post

    Hello Martin,
    You have forgotten the brackets - get_docked is a method, not a property:
    var isDocked = slidingZone.getPaneById("<%=RadSlidingPaneCriteria.ClientID%>").get_docked();  
     

    All the best,
    Tsvetie
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Martin
    Martin avatar
    41 posts
    Member since:
    Sep 2013

    Posted 04 Aug 2008 Link to this post

    Hi Tsvetie

    Many Thanks for that...

    I must need a holiday!

    Regards

    Martin
Back to Top