This is a migrated thread and some comments may be shown as answers.

[Solved] Remove column hide menu from column menu

2 Answers 444 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 17 Sep 2014, 06:37 PM
Hey Guys, I have a custom toolbar with an option to hide/show my grid columns, and I also have the column menu which I need the lock and filter option.

How can I remove the form my column menu the item "Columns"? 



Thank you for your time!

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 19 Sep 2014, 08:18 AM
Hello David,


You could achieve this in the columnMenuInit event of the Grid.
E.g.
function columnMenuInit(e) {
    var item = e.container.find(".k-columns-item");
    item.prev(".k-separator").remove();
    item.remove();
}

I hope this information helps.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
David
Top achievements
Rank 1
answered on 19 Sep 2014, 01:58 PM
Thank you!
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
David
Top achievements
Rank 1
Share this question
or