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

sorting the columns in the hide and show of the contextmenu

2 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 19 Nov 2015, 04:18 PM

I have a kendo grid i am creating using angularjs.  At the moment the columns are hard coded, which is allowing me to chose what columns to show and hide with the context menu option "columns". The problem I have is there is no way that I can see to order them alphabetically without changing the order in the grid.  

 

My question, is this the expectation or is there a way to sort just the context menu columns column name?

2 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 23 Nov 2015, 08:50 AM
Hi Steve,

I am afraid what you are trying to achieve is not supported - by design the columns in the ColumnMenu are rendered in the order in which they appear in the columns collection. However, you could try handling the columnMenuInit event and manually reorder the menu items.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
steve
Top achievements
Rank 1
answered on 23 Nov 2015, 03:50 PM
Thanks Iliana.  I will look into it
Tags
Grid
Asked by
steve
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
steve
Top achievements
Rank 1
Share this question
or