Unplanned
Last Updated: 12 Oct 2023 10:31 by ADMIN
Desislava
Created on: 06 Oct 2023 13:14
Category: PivotGrid
Type: Bug Report
1
RadPivotGrid: Incorrect filter results when a Value Filter is applied from child to parent group

To reproduce the problem, use the following setup for RadPivotGrid:

        public RadForm1()
        {
            InitializeComponent();

            DataTable table = new DataTable();
            table.Columns.Add("Name", typeof(string));
            table.Columns.Add("Salary", typeof(int));
            table.Columns.Add("Title", typeof(string));
            table.Rows.Add("John",1200,"Accountant");
            table.Rows.Add("Ana", 800, "Accountant");
            table.Rows.Add("Sam", 2500, "Manager");
            table.Rows.Add("Tom", 1300, "Manager");

            this.radPivotGrid1.RowGroupDescriptions.Add(new PropertyGroupDescription() { PropertyName = "Title"});
            this.radPivotGrid1.RowGroupDescriptions.Add(new PropertyGroupDescription() { PropertyName = "Name" });
            this.radPivotGrid1.AggregateDescriptions.Add(new PropertyAggregateDescription() { PropertyName = "Salary", AggregateFunction = AggregateFunctions.Sum }); 
         
            this.radPivotGrid1.DataSource = table;
        }

Follow the steps:

1. Filter the child group ("Name") >> Salary>1000.

This is the result of the applied filter:

2.  Filter the parent group ("Title") >> Salary>1500.

After applying the filter, the observed result is that the Accountant group is still displayed even though it should be filtered and hidden (like in Excel):

Observed result:

Expected result:

 

 

 

3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 12 Oct 2023 10:31

Hi, SANDRO,

Currently, I am glad that the suggested solution in the support ticket for hiding the drop down menu options is applicable as a temporary solution. The customers demand is taken into consideration and the more votes an item gathers, the higher its priority becomes. However, the overall impact and product strategy are also important when prioritizing and planning the items for the roadmap. This item is escalated to the Product Manager for the future strategy and we will consider it when planning the roadmap.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

SANDRO
Posted on: 06 Oct 2023 17:38
Thank you very much for taking this observation into account.

I consider that if it is essential this incident can be solved, because in my case this makes me have to rethink if I change the tool, since the people in charge of the process who are going to use the application trust that the results will be as expected and If this is not the case, then they will go back to using Excel, which is what they no longer wanted.

For the moment I will have to disable the ""Label Filter, Value Filter, More Sort Options, Sort A-Z, Sort Z-A"".

The reason for disabling is because the result is not reliable, since if you use the filter by value in "Title" and in "Name" you only use the option to select some names using the checks, the behavior is strange, that happened to me. me with the detailed example that I sent you, but mine was filtering by "Period" value greater than 400 and in "Branch" only selecting some 20 or 30 using the list of checks.

Thank you very much for your attention.
Keep in touch.
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 06 Oct 2023 13:27

Hi,

Currently, the RadPivotGrid's engine applies the value filters from the parent group to the child group. However, the order of applying the filters is important and it may lead to different results even though the filter values are identical. Please refer to the attached gif file for better illustration.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.