Hi,
All column menu examples in the documentation are column type specific (date, text, boolean...) https://www.telerik.com/kendo-react-ui/components/treelist/columns/menu/ . How to do a generic column menu with only sort and without any filter?
4 Answers, 1 is accepted
Hi,
The type of the column does not matter for a generic column menu with only sort. You can use any of them.
Here is an example - https://stackblitz.com/edit/react-nduhk6?file=app%2Fmain.jsx.
Regards,
Nikolay
Progress Telerik
Hi,
and how can I add a custom component to the column menu? I am asking because in our grid column custom menu we have custom elements and we want to have similar elements is TreeList column menu.
Hi,
Currently, the sorting can be turned on/off and the filtering can be customized. See the following demo - https://www.telerik.com/kendo-react-ui/components/treelist/columns/menu/#toc-customizing-the-column-menu.
For additional customization, see the following example: https://stackblitz.com/edit/react-fwd2hx?file=app%2Fmain.jsx. I used a custom column menu in 'columnMenu.jsx' file, instead of the built-in.
You can also download the source code, review it and implement your own column menu. It is a separated functionality in @progress/kendo-react-data-tools package.
Regards,
Nikolay
Progress Telerik