I'm building a grid using @(Html.Kendo().Grid(Model.MyModel))
syntax:
@(Html.Kendo().Grid(Model.MyModel)
.Name("GridName")
.Columns(columns =>
{
column.Bound(c => c.ID).Title("ID#").Width("150px");
})
When Grid is built, each column created has a menu containing "Lock", "Unlock" options.
I created a java script function to remove the "Lock" element from the menu and I believe it is supposed to be called when Grid is initializing?
function columnMenuInit(e) {
alert('1');
var item = e.container.find(".k-i-lock");
item.prev(".k-separator").remove();
item.remove();
}
However, this function is not called. How can I call it using my construct? Or I do not have to even use that function, since there is something that I can use when defining my grid?
How can I remove them?