6 Answers, 1 is accepted
Yes, there is such base class implemented for RadControls and it is called RadWebControl. The RadWebControl on the other hand inherits WebControl as well.
Best wishes,Svetlina
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

public void ToogleCheckBoxWithRadControl(CheckBox chkBox, RadWebControl radControl)
{
if (chkBox.Checked == true)
{
radControl.Enabled = false;
}
else
{
radControl.Enabled = true;
}
}
But it didn't work. Do you have any idea?
Thanks
LamK
Please, accept my sincere apologies for the provided wrong information - it turned out that not all of RadControls inherit the RadWebControl class, despite most of them does. The class which is base is the System.Web.UI.Control class but as you know it does not provide the Enabled property. However, I suggest to use the WebControl class and cast to it to set the property - if a RadControl can be casted to WebControl, you can set the property, otherwise - setting Enabled property to this particular control will not make sense.
For your convenience I prepared a simple demo page and attached it to the thread.
I am sorry for any inconvenience I might have caused with my previous post.
Svetlina
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

This is actually server code which is written like that for simplicity since it is a small piece of code and to save an additional file. You can verify this by examining the definition of the script block which is as follows:
<
script
type
=
"text/C#"
runat
=
"server"
>
instead of
<
script
type
=
"text/javascript"
>
so this i snot javascript but server C# code.
I noted this only for your information, in case you come along similar code on the net. You can find a demo with two separate files attached to the thread, let me know how it goes.
Svetlina
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Appreciate it.
LamK