html.Details - persistence

Hello, I currently use the html.Details in my app to allow users to collapse items that they don’t want to see. However, when they navigate to other pages and come back to the page with html.Details, all the items that they previously collapsed are open and visible again.

Is it possible to somehow remember the collapse state so the user doesn’t have to click on collapsing the items they don’t want to see every time they return to the page?