On the first click, the ContextMenu (or commandbar menu) will be shown with scrollbars. If I dismiss and immediately click again, the scrollbars are now gone. Although it is not consistent, for some menu items, the scrollbars are always shown.
Hi, Martin,
Use the following workaround until an official fix is introduced:
private void TvTest_ContextMenuOpening(object sender, TreeViewContextMenuOpeningEventArgs e)
{
(e.Menu.DropDown as RadDropDownMenu).DropDownOpened -= Form1_DropDownOpened;
(e.Menu.DropDown as RadDropDownMenu).DropDownOpened += Form1_DropDownOpened;
}
private void Form1_DropDownOpened(object sender, EventArgs e)
{
var dropdownmenu = (sender as RadDropDownMenu);
(dropdownmenu as RadContextMenuDropDown).RootElement.InvalidateMeasure(true);
(dropdownmenu as RadContextMenuDropDown).RootElement.UpdateLayout();
dropdownmenu.Size = (dropdownmenu as RadContextMenuDropDown).RootElement.DesiredSize.ToSize();
}Regards,
Nadya | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.