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

1 Answer 20 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

1 Answer, 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.

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