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

How to access the values in a user control inside a Dock

1 Answer 56 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Nag M
Top achievements
Rank 1
Nag M asked on 25 May 2010, 11:59 AM
Hi Telerik team,

I have placed multiple user controls inside a Dock zone. Controls loaded fine. Each user control contains multiple controls. I want to access the control values for saving reports.

Example: Rad Dock contains two user controls A, B.
A has two combo boxes and a textbox
B has two radio buttons and a text box.
I need to access the control values inside the user control from the Rad dock .

Please let me know, whether its possible or not.

Thanks,
Nag

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 27 May 2010, 07:10 AM
Hi Nag,

You can access the properties of the child controls, of a User Control, in the following ways:
  • Create a public property in the User Control that will expose the needed child control property.
  • Use the Control.FindControl(ID) method to find the respective control, and then access its properties

For your convenience I have created a sample project, that implements both approaches. Please find it attached to the thread.

Regards,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Dock
Asked by
Nag M
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or