50
Views
2
Comments
[Expandable Table Row] Programmatically toggle rows
expandable-table-row
Reactive icon
Forge asset by Rúben Meireles
Application Type
Reactive

Hello,

when a user expand a row, I need all the other rows to close.

is it possible?

thanks!

2022-05-25 12-57-53
Manideep Yadlapalli
Champion

Hi Gianluca,

You should implement your view using the accordians to achieve this functionality.

And set the "MultipleItems" property according to your requirement. 


Thank You,
Manideep

UserImage.jpg
Gianluca Ghioni

assign id=tableID to table element you want to use

Onclick event on the open icon that calls this JS:


let table = document.getElementById('tableID')

let iconClose = table.querySelector('div[id*=IconClose]')

if(iconClose){ iconClose.click() }

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.