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

Can we get column menu option in kendo grid ?

2 Answers 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hoai
Top achievements
Rank 1
hoai asked on 07 Jan 2021, 10:51 AM

As my experience

The kendo grid for Jquery , we can get the setting of column menu via this code

       var grid = $(name).data("kendoGrid");

       var columns = grid.columns;
       var setting = [];
       columns.forEach(function (x, index) {
            if (typeof x.menu === 'undefined' || x.menu) {
                setting.push({
                    hidden: x.hidden
                });
            }
       });

with that code we can define what column is hidden or not.

So how about kendo grid for angular, 

Is there anyway to get column setting option?

Thanks.

 

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 11 Jan 2021, 07:24 AM

Hello Hoai,

Here is the respective Kendo Angular Column Menu article:

https://www.telerik.com/kendo-angular-ui/components/grid/columns/menu/

Also, the following topic for Hidden columns can be found helpful as well:

https://www.telerik.com/kendo-angular-ui/components/grid/columns/hidden/

I hope this helps.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
hoai
Top achievements
Rank 1
answered on 11 Jan 2021, 08:19 AM

Thank for helping Martin.
Its worked !!

 

Tags
General Discussions
Asked by
hoai
Top achievements
Rank 1
Answers by
Martin
Telerik team
hoai
Top achievements
Rank 1
Share this question
or