Remove icon column in RadContextMenu

1 Answer 139 Views
ContextMenu
Alain
Top achievements
Rank 1
Alain asked on 16 Oct 2023, 08:11 AM

Hi,

We are using RadContextMenu (winforms).
It works fine.

But we would like to remove/hide the icon column because in most cases our items don't have icon/image.

Do you know if it is possible ?

Thanks.

Alain.

1 Answer, 1 is accepted

Sort by
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 16 Oct 2023, 10:02 AM

Hello, Alain,

If you want to reduce the space that appears on the left side in drop-down menu in RadContextMenu, please refer to the following code snippet:

RadDropDownMenuElement el = this.radContextMenu1.DropDown.PopupElement as RadDropDownMenuElement;
RadDropDownMenuLayout layout = el.LayoutPanel as RadDropDownMenuLayout;
layout.LeftColumnMinWidth = 0;

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Nadya
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.

Alain
Top achievements
Rank 1
commented on 17 Oct 2023, 08:35 AM

Hi Nadya,

It works.

Thanks for your help.

Alain.

Tags
ContextMenu
Asked by
Alain
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or