Hide hierarchy levels on filter pop up

Answered
Cristina asked on March 16, 2023

Hello,
I have defined the following hierarchy:
{"1": {
"type": "string",
"caption": "User Id",
"hierarchy": "Users"
},
"7": {
"type": "string",
"caption": "User",
"hierarchy": "Users",
"parent": "1"
}
}
Is there a way that when filtering the "User" row the "Id User" level does not appear in the filter pop up?
Thank you so much

3 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 17, 2023

Hello, Christina!
 
Thank you for your question.
 
Kindly note that it is the intended behavior of hierarchies to show all levels in the filter pop-up. 

If you need to visually group fields in the FieldList, but remain them separate on the grid, we suggest trying folders property instead of a hierarchy. It can be used as follows:

mapping: {
        "1": {
          type: "string",
          caption: "User Id",
          folder: "Users"
        },
        "7": {
          type: "string",
          caption: "User",
          folder: "Users"
        }
}

We have prepared a JSFiddle example for illustration: https://jsfiddle.net/flexmonster/st3mo9x2/.
Please note that this approach works only for JSON data sources.
 
Hope it helps.
You are welcome to contact us in case of any other questions.
 
Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 29, 2023

Hello, Christina!

Hope you are doing well.

Our team is wondering if you had some time to try the suggested approach of grouping fields using folder property. Could you please let us know if it works well for you?

Looking forward to hearing your feedback.

Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 5, 2023

Hello, Christina!

Hope you are having a great week.

Just checking in to ask if the suggested approach of grouping fields using folder property works well for your case.

Looking forward to your response.

Kind regards,
Solomiia

Please login or Register to Submit Answer