Hi Telerik Team,
I'm trying to put a ComboBox inside a ContextMenu. Would you be able to advise us on how to fix this issue ?
My code is working but there seems to be a visual issue where the tip of the combobox is cut as seen in the picture attached.
Here is my code (some of it is hardcoded and taken directly from the demo)
I'm trying to put a ComboBox inside a ContextMenu. Would you be able to advise us on how to fix this issue ?
My code is working but there seems to be a visual issue where the tip of the combobox is cut as seen in the picture attached.
Here is my code (some of it is hardcoded and taken directly from the demo)
Would you be able to advise us on how to fix this issue ? Thanks in advance. Regards, Adi KurniawanRadContextMenu contextMenu =
new
RadContextMenu();
RadMenuItem menuItem =
new
RadMenuItem(
"Add Item"
);
RadDropDownList fontDropDownList =
new
RadDropDownList();
//fontDropDownList.Margin = new Padding(25, 5, 5, 5);
fontDropDownList.Text =
"Select Font"
;
fontDropDownList.Items.Add(
new
RadListDataItem(
"Arial"
));
fontDropDownList.Items.Add(
new
RadListDataItem(
"Tahoma"
));
fontDropDownList.Items.Add(
new
RadListDataItem(
"Times New Roman"
));
fontDropDownList.Items.Add(
new
RadListDataItem(
"Verdana"
));
RadMenuContentItem contentItem =
new
RadMenuContentItem();
contentItem.ContentElement =
new
RadHostItem(fontDropDownList);
contentItem.MinSize =
new
System.Drawing.Size(150, 100);
menuItem.Items.Add(contentItem);
contextMenu.Items.Add(menuItem);