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

get_docked always returns TRUE?

2 Answers 57 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 04 Aug 2008, 09:42 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 04 Aug 2008, 12:04 PM
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.
0
Martin
Top achievements
Rank 1
answered on 04 Aug 2008, 12:59 PM
Hi Tsvetie

Many Thanks for that...

I must need a holiday!

Regards

Martin
Tags
Splitter
Asked by
Martin
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Martin
Top achievements
Rank 1
Share this question
or