I have created a ContextMenu with two buttons.
But if I show the ContextMenu not all of the button is shown.
How can I set the width of the ContextMenu ?
1 Answer, 1 is accepted
0
Nikolay
Telerik team
answered on 27 May 2010, 08:50 AM
Hello fbi,
Thank you for the question.
Generally, you can set the size of the context menu by setting the MinSize and MaxSize properties as shown below:
However, the size of the buttons is calculated by the size of the dropdown and this calculation is not correct even when you set a bigger size. In order to get the correct behavior, you need to set the Margin property of the buttons contained in the RadMenuButtonItems:
for(inti = 0; i < this.radContextMenu1.Items.Count; i++)
I hope this helps. If you have additional questions, feel free to contact me.
All the best,
Nikolay
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.