inheriting toolbar doesnt work

4 posts, 0 answers
  1. AG
    AG avatar
    22 posts
    Member since:
    Mar 2011

    Posted 31 Mar 2011 Link to this post

    I am inheriting RADtoolbar in my own class and its not working. Any advice ? Other controls like radgrid are working fine.
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 31 Mar 2011 Link to this post

    Hello AG,

    Did you receive any errors? Could you please show me your code so I can inspect it and help you?

    Thank you!

    Kind regards,
    Veronica Milcheva
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. AG
    AG avatar
    22 posts
    Member since:
    Mar 2011

    Posted 31 Mar 2011 Link to this post

    Hi there,


    i just declared a class and then   want to use it. I Can see this control on my toolbox but cannot use it

    [

     

    ToolboxData("<{0}:toolbar runat=server></{0}:ToolBar>")]

     

     

     

     

    class ToolBar:RadToolBar

     

     

    {

     

     

     

    public override ControlCollection Controls

     

     

    {

     

     

     

    get

     

    {

     

     

    return base.Controls;

     

     

    }

     

    }

     

     

     

    protected override void OnLoad(EventArgs e)

     

     

    {

     

     

     

    base.OnLoad(e);

     

     

    }

     

     

     

    protected override void OnInit(EventArgs e)

     

     

    {

     

     

     

    base.OnInit(e);

     

     

    }

     

     

     

    protected override void OnItemCreated(RadToolBarEventArgs e)

     

     

    {

     

     

     

    base.OnItemCreated(e);

     

     

    }

     

     

     

    protected override ControlItem CreateItem()

     

     

    {

     

     

     

    return base.CreateItem();

     

     

    }

     

     

     

    }

  5. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 06 Apr 2011 Link to this post

    Hi AG,

    Please find the answer in this forum post.

    Best wishes,
    Veronica Milcheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top