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

inheriting toolbar doesnt work

3 Answers 31 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
AG
Top achievements
Rank 1
AG asked on 31 Mar 2011, 12:49 PM
I am inheriting RADtoolbar in my own class and its not working. Any advice ? Other controls like radgrid are working fine.

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 31 Mar 2011, 04:12 PM
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
0
AG
Top achievements
Rank 1
answered on 31 Mar 2011, 06:52 PM
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();

 

 

}

 

 

 

}

0
Veronica
Telerik team
answered on 06 Apr 2011, 08:42 AM
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
Tags
ToolBar
Asked by
AG
Top achievements
Rank 1
Answers by
Veronica
Telerik team
AG
Top achievements
Rank 1
Share this question
or