Kendo TreeList columnMenu

5 posts, 1 answers
  1. Matej
    Matej avatar
    71 posts
    Member since:
    Jun 2019

    Posted 20 Jul 2020 Link to this post

    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? 

  2. Nikolay
    Admin
    Nikolay avatar
    104 posts

    Posted 21 Jul 2020 Link to this post

    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

  3. Matej
    Matej avatar
    71 posts
    Member since:
    Jun 2019

    Posted 21 Jul 2020 Link to this post

    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.

  4. Answer
    Nikolay
    Admin
    Nikolay avatar
    104 posts

    Posted 23 Jul 2020 Link to this post

    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

  5. Matej
    Matej avatar
    71 posts
    Member since:
    Jun 2019

    Posted 24 Jul 2020 in reply to Nikolay Link to this post

    Thank you! This is what I was looking for.
Back to Top