Declined
Last Updated: 16 Jun 2022 09:34 by ADMIN
YAVEON-RRA
Created on: 15 Nov 2019 09:55
Category: Grid
Type: Feature Request
0
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.

2 comments
ADMIN
Dimiter Topalov
Posted on: 16 Jun 2022 09:34

Hello,

We are declining this request due to low interest and demand. Furthermore, the Grid columns have built-in API for toggling their visibility, and there is a dedicated Grid columnVisibilityChange event, triggered when a column is shown/hidden through the UI. When the developer is hiding/showing a column programmatically, there is no need of a special event as they have full control to execute whatever custom logic necessary when changing the column visibility.

Regards,
Dimiter Topalov
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/.

ADMIN
Svet
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.

Regards,
Svetlin
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.