expandAllData not expanding multilevel members

Re-Open
Ilaria asked on January 24, 2022

Hi,
I’ve an issue about expanding all nodes programmatically, having a multilevel field in a custom data source API.
Here's a JSFiddle to reproduce the issue.
If you click on "expand all", all fields are expanded except for the multilevel field "Item" (= Category/BusinessType/Color).
I notice that if I drag and drop the whole field "Item" into the columns area (fields popup) then the "Expand all" button works, but if I drag and drop any level under "Item", no matter if I choose Category or BusinessType then the expand doesn't work (by selecting only the level color you can't reproduce the issue because in that case the field is already expanded).
So, the difference that seems to cause the issue is the field 'levelName' in the column object.
This is working:

.... columns:{[{ 
uniqueName: "Item"
}]} ...

this isn't:

.... columns:{[{ 
levelName: "Business Type",
uniqueName: "Item"
}]} ...

 
Thank you!
 

9 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster January 25, 2022

Hi, Ilaria!
 
Thank you for reporting this issue and for the detailed description of it.
 
We will provide a fix in the minor release with the ETA Feb 21st.
Meanwhile, you can try grouping items in a folder as a temporary workaround. With this approach, the expandAllData API call works correctly. Please check this example of folder usage: 
https://jsfiddle.net/flexmonster/uL3bpw9c/
 
You are welcome to write to us in case other questions arise.
 
Best Regards,
Maksym

Public
Ilaria January 25, 2022

Hi Maksym!
The workaround of grouping items in a folder is not feasible for us because in that way we will loose the possibility to have a single filtering mask for the hierarchy (see the attachment).
We will wait until Feb 21st.
Thank you,
Ilaria

Attachments:
ItemFilters.png

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster February 22, 2022

Hello, Ilaria,
 
We are pleased to inform you that the issue with expandAllData() when the levelName is in the slice was fixed.
 
The fix is available in the 2.9.19 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-19/
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/ 
 
Please let us know if any questions arise.
 
Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster March 1, 2022

Hello, Ilaria,
 
Hope you are doing well.
 
Could you please confirm if the fix works well for you? 
 
We will be glad to hear your feedback.
 
Kind regards, 
Nadia

Public
Ilaria March 8, 2022

Hello Nadia,
yes, the fix works fine!
Thank you!
 
Ilaria

Public
Ilaria March 25, 2022

Hi Nadia,
I realized right now that the issue is not completely solved. If you use the hierarchical field specifying a level, you will have the same issue.
I changed the previous JSFIddle 

  • by defining a three level hierarchy (Category/Color/BusinessType)
  • by selecting the filed Item at 'Color' level

if you expand a Color and then a Country-> the level Destination/BusinessType is empty
Thank you!
Ilaria

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster March 25, 2022

Hello, Ilaria,
 
Thank you for reporting the issue and providing the details.
 
Our team will take a look at the described behavior and provide a fix with our minor release with the ETA April 18th. We will notify you in case of any updates on the matter.
 
You are welcome to write to us in case further questions arise.
 
Kind regards,
Nadia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 19, 2022

Hello, Ilaria!
 
We are glad to inform you that the issue with expanding when the levelName is set in the slice was fixed.
 
This update is provided in the 2.9.23 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2923/
 
You are welcome to update the component. Here is our guide on upgrading to the latest version: https://www.flexmonster.com/doc/updating-to-the-latest-version/
 
Please let us know if everything works fine for you.
 
Best Regards,
Solomiia

Public
Ilaria April 20, 2022

Hello Nadia,
yes, the fix works fine!
Thank you!
 
Ilaria

Please login or Register to Submit Answer