Completed
Last Updated: 04 Jun 2020 11:05 by ADMIN
Mariana
Created on: 27 Feb 2019 11:06
Category: Grid
Type: Feature Request
5
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?
2 comments
ADMIN
Martin
Posted on: 12 Mar 2020 09:58

Hi Mariana,

As a quick follow up on this feature request.

I am happy to share that the feature is available in the latest dev version of the Grid package.

Please, check out the examples and the documentation at the following link:

https://www.telerik.com/kendo-angular-ui-develop/components/grid/master-detail/expanded-state/

Regards,
Martin
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.
ADMIN
Svet
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:
https://feedback.telerik.com/kendo-angular-ui/1397988-expose-isrowexpanded-collapsed-methods

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.

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