Column menu entry "Set Column Position" for non-lockable and non-stickable Columns

2 Answers 355 Views
Grid
Stefan
Top achievements
Rank 1
Stefan asked on 13 Apr 2022, 12:34 PM

Hello,

when one column of a Grid is configured with enabled  "stickable" or "lockable", a "Set Column Position" column menu item appears for all columns.

Is this behavior intentional?

If columns are neither "stickable" nor "lockable", I would like to remove the "Set Column Position" column menu item for those columns. Could you please show me how to achieve the behavior I want?

Thanks and Greetings
Stefan

2 Answers, 1 is accepted

Sort by
1
Accepted
Georgi Denchev
Telerik team
answered on 18 Apr 2022, 09:34 AM

Hello, Stefan,

Thank you for the provided details.

Yes, this is the expected behavior. If the column is neither stickable, nor lockable, the options will simply be grayed out in the Set Column Position menu.

If you wish to remove the menu entirely, you can use the columnMenuInit event to find the columns that are not stickable and lockable, and remove the html elements.

Dojo example:

https://dojo.telerik.com/@gdenchev/IVarIlET 

Best Regards,
Georgi Denchev
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.

0
Akshit
Top achievements
Rank 1
Iron
answered on 16 Jul 2024, 12:18 PM
hello,

When i am set any one colum "Locked : true" After All Colum "columnMenu" Have a "Set Column Position" Option.
so my quesion is can i unable other Column "columnmenu" "Set Column Position" Option.






Georgi Denchev
Telerik team
commented on 19 Jul 2024, 07:48 AM

Hello, Akshit,

I left you a response in the other forum thread:

https://www.telerik.com/forums/column-freeze#5854629

Best Regards,

Georgi

Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Georgi Denchev
Telerik team
Akshit
Top achievements
Rank 1
Iron
Share this question
or