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

Grid columns in separate control

2 Answers 171 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 17 May 2016, 11:58 AM
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 Answers, 1 is accepted

Sort by
0
Andrey
Top achievements
Rank 1
answered on 17 May 2016, 12:08 PM
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. 
0
Dimo
Telerik team
answered on 19 May 2016, 10:36 AM
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!
Tags
Grid
Asked by
Andrey
Top achievements
Rank 1
Answers by
Andrey
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or