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

Accessing controls

1 Answer 30 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Saira
Top achievements
Rank 1
Saira asked on 16 May 2013, 06:29 AM
Hi Telerik,

How can I access a RadControl in my RadDock from C#?

Thankyou,
Saira

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 May 2013, 06:43 AM
Hi Saira,

If the RadControl is placed inside the ContentTemplate you can access it directly as follows.

C#:
RadTextBox1.Text = "my text";

If you have placed the control inside the RadDock's ContentContainer you can find it using the following code line:

C#:
RadDock1.ContentContainer.FindControl("RadControlID");

Thanks,
Shinu.
Tags
Dock
Asked by
Saira
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or