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

Kendo TreeList columnMenu

4 Answers 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 20 Jul 2020, 02:28 PM

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

Sort by
0
Nikolay
Telerik team
answered on 21 Jul 2020, 10:45 AM

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

0
Matej
Top achievements
Rank 1
Veteran
answered on 21 Jul 2020, 11:03 AM

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.

0
Accepted
Nikolay
Telerik team
answered on 23 Jul 2020, 10:43 AM

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

0
Matej
Top achievements
Rank 1
Veteran
answered on 24 Jul 2020, 10:36 AM
Thank you! This is what I was looking for.
Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Nikolay
Telerik team
Matej
Top achievements
Rank 1
Veteran
Share this question
or