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

Inheritance from RadMenuItem, and avoid autogenerate Children

1 Answer 41 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David Gualda
Top achievements
Rank 1
David Gualda asked on 29 Feb 2012, 06:22 PM
Hello,
I've got the next problem; I'm creating a Custom Control which inherit from RadMenuItem.

When I add a new object with the type of my custom control, Its Items are autogenerated (3 RadMenuItems inside).

Is there any way to disable this feature? I mean, I don't want to generate RadMenuItems.

Do I have to override any method, to generate an empty collection of Items in Design Mode.

Thanks in advace,

Regards
David Gualda

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 05 Mar 2012, 12:54 PM
Hello David,

In order to disable this feature you will have to remove the design assembly of Navigation from your project. Then no autogenerated items will be added to the newly create menu.

Please do not hesitate to contact us again if you have further questions.

Regards,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Menu
Asked by
David Gualda
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or