Column Freeze

2 Answers 56 Views
Grid
Akshit
Top achievements
Rank 1
Iron
Akshit asked on 16 Jul 2024, 12:22 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.


 

 

 

2 Answers, 1 is accepted

Sort by
0
Akshit
Top achievements
Rank 1
Iron
answered on 17 Jul 2024, 08:39 AM

answer ???

 

0
Georgi Denchev
Telerik team
answered on 19 Jul 2024, 07:16 AM

Hi, Akshit,

There is no built-in configuration to disable the "Set Column Position" submenu. This option appears when a sticky/locked/reorderable column is detected.

You can either remove the element using JavaScript, or you could override the menu initialization and make the columnmenu think there are no locked/sticked columns:

      let _createMenu = kendo.ui.ColumnMenu.fn._createMenu;
      kendo.ui.ColumnMenu.fn._createMenu = function() {
        this.options.hasStickableColumns = false;
        this.options.hasLockableColumns = false;
        _createMenu.call(this);
      }

Dojo

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

Best Regards,
Georgi Denchev
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

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