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

How to find the control id from multiple RadDock control

1 Answer 111 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 07 Feb 2012, 12:06 PM
Hi,
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" 
                        BorderStyle="None">
                        <telerik:RadDock ID="RDOccurrence" runat="server" Height="200" >                        
                              </telerik:RadDock>
                    </telerik:RadDockZone>
                       <telerik:RadDockZone ID="RDZReserveAndPaymentInformation" runat="server" MinHeight="100" Width="350"
                        BorderStyle="None">
                        <telerik:RadDock ID="RDReserveAndPaymentInformation" runat="server" Height="200px" >
                            </telerik:RadDock>
                    </telerik:RadDockZone>
                       <telerik:RadDockZone ID="RDZAgentInformation" runat="server" MinHeight="100" Width="350"
                        BorderStyle="None">
                        <telerik:RadDock ID="RDAgentInformation" runat="server" Height="200px">
                           
                          </telerik:RadDock>
                    </telerik:RadDockZone>
                </telerik:RadDockLayout>


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

Thanks,
Rajesh

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 10 Feb 2012, 08:59 AM
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,
Slav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or