Last Updated: 22 Nov 2019 08:54 by ADMIN
Created on: 15 Nov 2019 09:55
Category: Grid
Type: Feature Request
GridComponent methods to set column visibility

Setting grid.columns[i].hidden may work to some extend, but isn't emitting columnVisibilityChange and further activities on a column set visible are not working but resulting in error, e.g. calling reorderColumn() results in:

TypeError: Cannot set property 'orderIndex' of undefined
    at GridComponent.push../node_modules/@progress/kendo-angular-grid/dist/fesm5/index.js.GridComponent.updateColumnIndices (https://localhost:4201/vendor.js:196833:43)

The grid internal method updateColumnIndices() throws an error, because it doesn't get the newly visible column from expandColumnsWithSpan() and expandedColumns.indexOf(source) is -1. 

Thus it's required to add methods like showColumn/hideColumn or setColumnVisibilty.

1 comment
Posted on: 22 Nov 2019 08:54

Hi Robert,

Thank you for the logged feature request.

Indeed, that would be a valuable addition to the Kendo UI for Angular Grid.

We will track the demand for this feature and eventually provided it in a future release of Kendo UI for Angular.

Thank you for sharing your feedback.

Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.