Inheritance from RadMenuItem, and avoid autogenerate Children

2 posts, 0 answers
  1. David Gualda
    David Gualda avatar
    1 posts
    Member since:
    Jan 2012

    Posted 29 Feb 2012 Link to this post

    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,

    David Gualda
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 05 Mar 2012 Link to this post

    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.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top