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

Grid Column Menu only in one column

4 Answers 713 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 14 Sep 2015, 08:30 PM

Hello. Is there a way to have a column menu only in one column ? I tried doing:  

grid.thead.find("[data-field=bar]>.k-header-column-menu").remove();
but also eliminates the filter options of the column and I want to keep them.

 

 

4 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 16 Sep 2015, 11:45 AM
Hello Carlos,

A possible solution is to remove all items without the filter one from the menu. Please check out the following sample which demonstrates that.

Regards,
Kostadin
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Carlos
Top achievements
Rank 1
answered on 16 Sep 2015, 02:08 PM

Hello Kostadin. Thanks for your example but it does not do what I want. I need a column menu only in one column (In your example all the columns have a column menu) and I also want filters for all the columns . Perhaps I don´t understand your example.

 

0
Accepted
Stephen
Top achievements
Rank 2
answered on 16 Sep 2015, 08:31 PM

Hello Carlos,

 

This may not be exactly what you want, but it puts a single ColumnMenu "on" the grid.

http://dojo.telerik.com/UwUQa

 

I just modified Kostadin's example by pasting in some of my code(it looks better in my actually application).

It essentially builds the ColumnMenu manually instead of using the built-in one.

Then I just put it where ever I want.  In this case, I put it in a ToolBar above the grid, using a tiny "config" button.

With some creativity, you could put it in a column of your choice and style it so that it looks good.

 ​

0
Carlos
Top achievements
Rank 1
answered on 17 Sep 2015, 05:22 PM

Hi Stephen,

Your code does exactly what I want

Thank you

Tags
Grid
Asked by
Carlos
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Carlos
Top achievements
Rank 1
Stephen
Top achievements
Rank 2
Share this question
or