Inhert from RadWindow

3 posts, 0 answers
  1. Marc
    Marc avatar
    4 posts
    Member since:
    Jan 2014

    Posted 11 Apr 2014 Link to this post

    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. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 16 Apr 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marc
    Marc avatar
    4 posts
    Member since:
    Jan 2014

    Posted 18 Apr 2014 in reply to Danail Vasilev Link to this post

    Hey Danail -

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

    Thanks!
    Marc
Back to Top