Skip to main content
13-Aquamarine
March 13, 2024
Question

Expand leads to infinite loop

  • March 13, 2024
  • 0 replies
  • 513 views

Hi,

I have a solution where I have a structure that should be expandable/collapsable. It works great as long as I have only one open, but when I have one open and open another I will need double click.

It works like this:

1, A trigger button calles an expression which sets a session variable containing the id (string) of the clicked parent of the children being expanded (children lies in a container with visible false from the start).


2, In the service getting the items there are logic to set an expanded flag which is then used to alter the visible property of the childrens container.

3, I have a session variable to be able to know if the structure should be expanded or collapsed, 0 means that it is incremented, 1 means that it is set to 0. The session in (1) is then set to empty or the id of the item being expanded.

So, how would you propose that this can be done?

 

Kindly

Oskar Berntorp