|
Article relates to
|
RadScheduler
|
|
Created by
|
Peter, Telerik
|
|
Last modified
|
September 9, 2009
|
|
Last modified by
|
Peter, Telerik
|
HOW TO
Access controls in the advanced form
DESCRIPTION
RadScheduler's
FormCreated event allows you to access elements on the advanced form. This is achieved using the
FindControl method of
e.
Container and passing as an argument the last part of the rendered control's ID. For example, to access the advanced controls' panel, you need to use
e.Container.FindControl("AdvancedControlsPanel")

The description labels Resources require a different approach since they are WebControls which dynamically add the label. For example, suppose you want to modify the description for the Room's resource:

You still need to use the FindControl() method. However,
e.Container.FindControl("LblResRoom") will return a WebControl. Once you get this WebControl you can clear its children and add a new label dynamically.
SOLUTION
C#
VB.NET
Please
Sign In
to rate this article.