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

adding menu item programmatically is not showing

1 Answer 49 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Peruri
Top achievements
Rank 1
Peruri asked on 16 Jun 2011, 04:40 AM

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?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 16 Jun 2011, 11:43 AM
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.

Regards,
Hristo
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
Menu
Asked by
Peruri
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or