This is a migrated thread and some comments may be shown as answers.

Inhert from RadWindow

2 Answers 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 11 Apr 2014, 08:41 PM
Hey -

Is is possible to inherit from RadWindow? I have created a project based on other example projects you have posted for other controls but I am getting the following error:
 "The base class includes the field 'RadWindow1', but its type (Whatever.Lightbox) is not compatible with the type of control (Whatever.Lightbox)."

Thanks.
Marc 

2 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 16 Apr 2014, 12:58 PM
Hi Marc,

It is fine to inherit the RadWindow. For example:
ASPX:
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
</form>
C#:
protected void Page_Load(object sender, EventArgs e)
{
    MyRadWindow myRW = new MyRadWindow();
    myRW.VisibleOnPageLoad = true;
    form1.Controls.Add(myRW);
}
public class MyRadWindow : RadWindow
{
 
}

Regarding the mentioned error message it is not know to us. I can suggest that you examine this and this forum threads that shed more light on the matter.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marc
Top achievements
Rank 1
answered on 18 Apr 2014, 03:22 PM
Hey Danail -

I was able to get it resolved. It was a circular reference issue.

Thanks!
Marc
Tags
Window
Asked by
Marc
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Marc
Top achievements
Rank 1
Share this question
or