Can we get column menu option in kendo grid ?

3 posts, 0 answers
  1. hoai
    hoai avatar
    2 posts
    Member since:
    Jan 2021

    Posted 07 Jan Link to this post

    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. Martin
    Admin
    Martin avatar
    282 posts

    Posted 11 Jan Link to this post

    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/.

  3. hoai
    hoai avatar
    2 posts
    Member since:
    Jan 2021

    Posted 11 Jan in reply to Martin Link to this post

    Thank for helping Martin.
    Its worked !!

     

Back to Top