How to find the control id from multiple RadDock control

Thread is closed for posting
2 posts, 0 answers
  1. Rajesh
    Rajesh avatar
    8 posts
    Member since:
    Feb 2012

    Posted 07 Feb 2012 Link to this post

    I am not able to find the each control id from multiple RadDockLayout controls in my page.I have to get all id's of RadDock control which is in different RadDockLayout and i have to get ordinal position of each RadDock information then i need to save in database. I have below the code.
          <telerik:RadDockLayout ID="RDLOccurrence" runat="server">
                        <telerik:RadDockZone ID="RDZOccurrence" runat="server" MinHeight="100" Width="350" 
                            <telerik:RadDock ID="RDOccurrence" runat="server" Height="200" >                        
                           <telerik:RadDockZone ID="RDZReserveAndPaymentInformation" runat="server" MinHeight="100" Width="350"
                            <telerik:RadDock ID="RDReserveAndPaymentInformation" runat="server" Height="200px" >
                           <telerik:RadDockZone ID="RDZAgentInformation" runat="server" MinHeight="100" Width="350"
                            <telerik:RadDock ID="RDAgentInformation" runat="server" Height="200px">

    Please do need full help for me to find the each of RadDock id,Ordinal Position in code.

  2. Slav
    Slav avatar
    1359 posts

    Posted 10 Feb 2012 Link to this post

    Hi Rajesh,

    The RadDockLayout control has a property RegisteredDocks, which gives access to a collection of all RadDock controls, registered in this dock layout. After referencing the RadDocks, you can retrieve all available information that is exposed through the control's properties. The example below demonstrates how to get the IDs of every RadDock in the RadDockLayout from your code sample:
    protected void Page_Load(object sender, EventArgs e)
        foreach (RadDock dock in RDLOccurrence.RegisteredDocks)
            Page.Response.Write(dock.ID + " ");

    Also, I would suggest using a single RadDockLayout on your page and inserting all RadDockZones and RadDocks in it, so that you can successfully manage their layout.

    I hope this helps.

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top