Grouping filters with "or" relation between the groups

Grouping filters with "or" relation between the groups

JoreliaJorelia Posts: 1Questions: 1Answers: 0

Hi,

I have to group filters in a specific way. Checkboxes should be grouped as follow:

'Group 1' has Value 1, Value 2, and Value 3,
'Group 2' has Value 4, Value 5, and Value 6.

Filters in 'Group 1' should work as 'AND'. Example: 'Show me the data that has Value 1 AND Value 2'.
Between groups, filters should work as 'OR'. Example
'Show me the data that has (Value 1 AND Value 2) OR (Value 4 AND Value 5).

Is there any way to get this effect? I will be grateful for help.

Answers

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    I haven't tried it, but I think you could do this with a custom function for the rowGroup.dataSrc function. Have the data function return a single value for all items that should be grouped - e.g. Group 1 would do.

    You probably would want a custom rendering function as well to explain to the end user what is going on.

    Allan

Sign In or Register to comment.