Is it possible to turn off the column menu on certain columns ?
I have tried setting the grid options as follows :
columnMenu: { columns: false },
columns: [{
field: "MAJ_RE_BASE",
title: "Base",
filterable: false,
sortable: false,
menu: false,
but this still shows the column menu icon.
Which leads onto another slight problem that if you now click on the icon a small blank menu is drawn with no content (see ColumnMenu.png)
I have trawled through the docs & forums for guidance but have so far drawn a blank.
Therefore any help would be much appreciated.
Thanks
Alan
17 Answers, 1 is accepted
Please take a look at the following Telerik Dojo illustrating how to remove a column menu.
Here is the code I used to remove the column menu:
var grid = $("#grid").data("kendoGrid");
//By field
grid.thead.find("[data-field=ShipCountry]>.k-header-column-menu").remove();
//By Index
grid.thead.find("[data-index=1]>.k-header-column-menu").remove();
Hope this helps!
Regards,
Patrick
Telerik

Thanks Patrick,
That works a treat.
Regards
Alan
Glad everything is working!
Regards,
Patrick
Telerik

Currently, a configuration to hide a specific column's columnMenu is not supported at the moment. However, I recommend adding this idea to our Progress Kendo UI Feedback Portal where features are voted for by the community to be reviewed by our developers for future releases.
Thank you for choosing Progress.
Regards,
Patrick
Progress Telerik

Hello Don,
There has been a Feature Request on the subject which is pending review currently. I would highly recommend adding a comment on the thread to add any details you would like to convey to our the developers, and the community.
Regards,
Patrick
Progress Telerik

Thanks Patrick. After wasting an hour trying to find the correct CSS selector, you have solved my problem.
I hade hoped that setting the columnMenu: false would work in the columns collection, but that has no effect and your workaround does the job.
Hi Gary,
I'm glad the workaround helped in your web application. If you haven't, I recommend adding your vote to this feature request and adding a comment for our developers to consider for future releases.
Regards,
Patrick
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

i have a gird which is created from table
i pass data-menu="false" attribute to th tag for setting column.menu to false but it is not working. would you please help me?
the demo page is : https://dojo.telerik.com/eQALunad/9
Hello Fereshteh,
Currently, in order to remove a column's menu, use the jQuery approach shared previously. For example, using the for the provided Grid:
$(document).ready(function() {
$("#grid").kendoGrid({
columnMenu: true,
});
//Reference the Kendo Grid
var grid = $("#grid").data("kendoGrid");
//Removing The Ship Country Column Menu:
//By field
grid.thead.find("[data-field=make]>.k-header-column-menu").remove();
grid.thead.find("[data-field=model]>.k-header-column-menu").remove();
//By Index
//grid.thead.find("[data-index=1]>.k-header-column-menu").remove();
});
Please feel free to add your vote, follow for any upcoming updates, and comment on the feature request related to this inquiry.
Regards,
Patrick
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

hi Patrick and thank you for your answer. but this is not what i want. i don't want to remove the three dots button from the column header. i want to remove that column from columnMenu which user can check and uncheck for showing and hiding specific colunm. for example i want first column to be shown all time and user can not uncheck it inside columMenu
for more detailes please visit this post
i really need your help. thank you
Hi Fereshteh,
Pertaining to the behavior regarding data-menu, I will reach out to the Kendo UI Grid developers to investigate it further.
In the meantime, one way to hide a specific column marked as data-menu = "false" is to use the columnMenuInit event to configure the columnMenu.
function onColumnMenuInit(e){
//Avaliable Grid columns
var columns = e.sender.columns;
//get menuItem inputs
var inputs = $(e.container).find("input");
for(var x = 0; x < columns.length; x++){
//if the column's menu property is set to false
if(columns[x].menu == "false"){
//hide the parent span of the input
$(inputs[x]).parent("span").hide();
}
}
}
Please take a look at this updated Progress Kendo UI Dojo which shows the implementation above, and let me know if you have any questions.
Regards,
Patrick
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hello Fereshteh,
I wanted to update you to let you know the Kendo UI Grid developers have confirmed this behavior is a bug. I have created a bug report on your behalf in our feedback portal and in our Kendo UI GitHub repository. Please feel free to follow each for updates from our team.
Regards,
Patrick
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

hello Patrick
thank you so much for your answer and solution
I will use it and I appreciate your taking the time
Hello Fereshteh,
I'm glad this solution has helped and happy to assist!
Regards,
Patrick
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

If you don't need to sort that column, if the "field" is not needed, you can just not provide it, and the icon will not be there, without any need for CSS / JS Hack. Use a simple template to display your field value.
Hi Frederic,
I can confirm the issue has been resolved with version 2021.R2.SP1. Please feel free to take a look at the following Progress Kendo UI Dojo which demonstrates a working example of hidden columns with the data-menu configuration.
Hope that helps!
That's not what we're talking about. Using the "data-menu" remove the column from available list, like setting column.menu = false in the dataSource.
But, the initial point was to not showing the menu at all on certain columns. We need to do like the columnMenu: false is applied, but only on certain columns not all.
My apologies for the miscommunication. Thank you for the clarification, and for the additional workaround from the original issue by not including a field and using a template.