Skip to main content
13-Aquamarine
November 27, 2020
Solved

TreeGridAdvanced expand/collapse, multiple childs vs. parent

  • November 27, 2020
  • 1 reply
  • 1777 views

Hi community users, 

 

Is somehow possible, in Tree Grid Advanced, use function for expand/collapse all rows of the infotable? 

I tryed to use property "ExpandLoadedRows" which is bindable - so I bound a Checkbox to this value, but it didn't work for me. It worked only when I set this property checked by default which shows me only expanded rows.

mvajla_0-1606474948022.png

 

How can I achieve correctly shown data in tree advanced grid, when in BOM I have two lines with the same ID (in another structures/parents)? Currently it shows me the child ID correctly in the position , but from wrong ParentID.

 

Thanks

 
Best answer by slangley

Hi @mvajla.

 

From the ThingWorx Help Center:

 

Automatically expands all preloaded data when the grid is launched.

 

Multiple levels of preloaded data must be available. When this property is set, it affects the way rows are highlighted when DefaultSelectedRows are defined. This property must be turned off to use the PreserveRowExpansion property.

 

Therefore, it appears you are attempting to use this setting outside of its intended purpose. 

 

You could do something with a session variable and refreshing the page.

 

Regards.

 

--Sharon

1 reply

slangleyCommunity ManagerAnswer
Community Manager
December 3, 2020

Hi @mvajla.

 

From the ThingWorx Help Center:

 

Automatically expands all preloaded data when the grid is launched.

 

Multiple levels of preloaded data must be available. When this property is set, it affects the way rows are highlighted when DefaultSelectedRows are defined. This property must be turned off to use the PreserveRowExpansion property.

 

Therefore, it appears you are attempting to use this setting outside of its intended purpose. 

 

You could do something with a session variable and refreshing the page.

 

Regards.

 

--Sharon

Community Manager
December 11, 2020

Hi @mvajla.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.  If you still have issues, please let us know.

 

Regards.

 

--Sharon