Grid columns in separate control

3 posts, 0 answers
  1. Andrey
    Andrey avatar
    9 posts
    Member since:
    Apr 2016

    Posted 17 May 2016 Link to this post

    In a column menu there's an option to show/hide columns with checkboxes. But this menu is duplicated for all columns, which is not good for me. Is it possible to move that list of columns with checkboxes to a separate control? For example I click some button and a window with that columns list pops up.
  2. Andrey
    Andrey avatar
    9 posts
    Member since:
    Apr 2016

    Posted 17 May 2016 Link to this post

    I forgot to mention that in a grid settings I have `columnMenu: false`, so I only want to show filters on each columns, not menu. 
  3. Dimo
    Admin
    Dimo avatar
    8482 posts

    Posted 19 May 2016 Link to this post

    Hello Andrey,

    It is possible to implement a custom user interface that lists the Grid columns and their visibility state and render it outside the Grid. Then, hide and show the Grid columns programmatically, depending on the user's interaction with that custom list.

    This is how to obtain information about the Grid columns:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#fields-columns

    This is how to hide and show Grid columns programmatically:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-hideColumn
     
    http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-showColumn

    The above column list can be rendered in a Kendo UI Window or a Kendo UI Popup, or a custom popup of yours.

    http://docs.telerik.com/kendo-ui/controls/layout/window/overview
    http://docs.telerik.com/kendo-ui/api/javascript/ui/window

    http://docs.telerik.com/kendo-ui/api/javascript/ui/popup

    Regards,
    Dimo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top