We have a requirement to render a page in edit mode and read only mode.
The RAD controls that we are using are custom classes that inherits from
Rad control classes. For example we have a class called CSRadComboBox
that extends from the class RadComboBox and we use the instances of
class CSRadComboBox in all the code for the project.
When a page is rendered in the read-only mode to the users, we override
the Render method of the RadComboBox and render an
System.Web.UI.WebControls.Label object with the contents in it. I have
copy pasted the code used to render in the readonly mode for one of the
protected override void Render(HtmlTextWriter writer)
Label lblValue = new Label();
string display = "--";
display = this.SelectedText;
lblValue.Text = display;
error that is thrown, "null is null or not an object" and when debugged
telerik resource is trying to attach events to the labels that has been
entered and since it is not able to find the actual control, the
the readonly view of the page when actually it is not required at all.