Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

First of all, I just want to say good job with the slickgrid plugin. I love it!

So my problem is that I have implemented a grid with the header menu plugin. However some of my columns that use the header menu also have sorting enabled. So whenever you click to get the header menu, it also does a column sort as well. Is there a way to click on the header menu arrow without sorting the columns?

Thanks

Edit: I just realized in the example: http://mleibman.github.io/SlickGrid/examples/example-plugin-headerbuttons.html

They had an option to sort columns as a menu item. So I am starting to think it is not possible and the work around is to add sorting in as menu items...

share|improve this question

1 Answer

Remove "sortable:true" from the column definition and the sorting will stop.
i.e. columnDefs = {{id:"id",name:"ID",field:"idField",cssClass:"Slick-cell",sortable:true}};

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.