adding menu item programmatically is not showing

2 posts, 0 answers
  1. Peruri
    Peruri avatar
    5 posts
    Member since:
    May 2011

    Posted 15 Jun 2011 Link to this post

    Telerik.Windows.Controls.RadMenuItem headerMenuItem = itemclicked.Menu.FindName("entryActions") as Telerik.Windows.Controls.RadMenuItem ;


    headerMenuItem.Menu.Items.Add(new Telerik.Windows.Controls.RadMenuItem().Header = "New Item");

    I am missing anything here?

  2. Hristo
    Hristo avatar
    832 posts

    Posted 16 Jun 2011 Link to this post

    Hi Peruri,

    It is kind of strange to use FindName when you can get the element directly (this.entryActions) but no there is nothing missing here.
    I have tried your scenario and it is working (project attached).
    Please send us sample project where we can reproduce this issue.

    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
  3. DevCraft banner
Back to Top