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

2 posts, 0 answers
  1. Nag M
    Nag M avatar
    4 posts
    Member since:
    May 2010

    Posted 25 May 2010 Link to this post

    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.

  2. Pero
    Pero avatar
    1156 posts

    Posted 27 May 2010 Link to this post

    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.

    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.
Back to Top