Accessing controls

2 posts, 0 answers
  1. Saira
    Saira avatar
    24 posts
    Member since:
    Feb 2013

    Posted 16 May 2013 Link to this post

    Hi Telerik,

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

    Thankyou,
    Saira
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top