Show columns when we ungroup them

3 posts, 0 answers
  1. Niloofar
    Niloofar  avatar
    24 posts
    Member since:
    Jan 2015

    Posted 23 Mar 2016 Link to this post

    I have a grid which i want to hide the columns when they are grouped and show them when are removed from our group panel. is there any other way than looping through all columns to show(commented code). 

                    dataBound: function (e) {
                        // this function (event) runs when kendo grid gets new data that get bound
                        var gridDataSource = e.sender.dataSource;
                        if ( > 0) {

                            // for (var i = 0; i < this.columns.length; i++) {
                            //     grid.showColumn(i);
                            // }

                            Ember.$("div.k-group-indicator").each(function (i, v) {
                            //the grid is grouped
                            Ember.$(".grouping-collapser").css('display', 'block');
                        } else {
                            Ember.$(".grouping-collapser").css('display', 'none');

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 24 Mar 2016 Link to this post

    Hi Niloofar,

    With the current implementation of the widget, traversing the columns and manually hide the grouped ones is the only available option. If you thing that such feature could be a good addition to the built-in functionality of the widget you could create a feature request in our public portal:

    Best Regards,
    Konstantin Dikov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Niloofar
    Niloofar  avatar
    24 posts
    Member since:
    Jan 2015

    Posted 24 Mar 2016 in reply to Konstantin Dikov Link to this post

    Thank you for your reply,  I will.
Back to Top