Last Updated: 04 Mar 2019 07:24 by ADMIN
Created on: 27 Feb 2019 11:06
Category: Grid
Type: Feature Request
Expose isRowExpanded/Collapsed methods
I need to expand/collapse grid rows programmatically. I know about grid.expandRow/collapseRow, but there is no public methods which can get me know  is row expanded at this moment and collapse it. I need to manage in component array of expanded rowIndexes and every time to check is row expanded,then call method collapseRow, which again, under hood, using your private method this.detailsService.isExpanded(index), is doing this check. It's very inconvenient.  So, can you expose this methods or toggleRow() to allow us get rid of additional logic around? Or, possibly, you know other way to get this info directly from grid?
1 comment
Posted on: 04 Mar 2019 07:24
Hi Mariana,

Indeed, persisting the currently expanded rows in an array and then using the collapseRow or expandRow methods is a valid approach of achieving the desired functionality.

Currently there does not seem to be another built in approach of achieving the desired functionality. This is why, I converted this thread to a public feature request, so that other clients can vote for it:

This will help us to keep track of the demand for the specific feature and consider providing it in a future release.

Let us know in case any further assistance is required for the built in features of Kendo Ui for Angular.

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