Filter behavior with hierarchical field
Hi Team,
I am afraid, the grid has the issue with filtering columns on the second level with using of the hierarchical fields
When I am using the following code for the columns on the first level no issue found:
grid.Headers.Add(new Header());
grid.Headers[0].Add(new Column("Name"));
grid.Headers[0].Add(new Column("Note"));
grid.Headers[0].GroupingEnabled = true;
grid.Headers[0]["Name"].Filter = new Dapfor.Net.Filters.ValueEqualityDropdownFilter();
but the same approach doesn't work for the columns on the second level:
Header header = Header.FromDataType(typeof(StrategyClass));
header.Visible = true;
grid.Headers.Add(header);
grid.Headers[1]["Status"].Editable = true;
grid.Headers[1]["Status"].Filter = new Dapfor.Net.Filters.ValueEqualityDropdownFilter();
The problem appears in the DropDown control which should contains the distinct filtered values (from the column) and the value "{All)".
If we trying to filter the columns on the first level, the DropDown control was filled with values successfully. No problem here.
But on the second (probably on the thread level too) level , the DropDown control has the "All" values only. It doesn't contain the values from the column....
As result, the filtering id not possible.
What do you think about it?
BR,
dx2003
-
Hi,
Thank you for this post. We have identified the bug, related to graphical filters on 2nd, 3rd etc. hierarchical levels. It will be fixed in the next version. Note, non-graphical filters work as expected.
We'll keep you informed when the patched grid will be available. We've included this fix into our planning and expect a new release the next week.
Kind regards,
Dapfor
0 -
Hi Team!
Thank you for you replay. I think, you have found all issues with filtering already.
I would like just summarize the found problems:
1) if grid have only one header (only one hierarchical level) the dropdown control was filled with the columns distinct values and "(All)" successfully.
But the grid able to filter the string(!) values only.... If the column has other types, for example double on some enum, no filtering is possible with using the ValueEqualityDropdownFilter class.
The issue is located in ValueEqualityDropdownFilter.Filter::IsFiltered(Row row).
2) if the grid has more than one level (the hierarchical levels > 1) , for example two, the dropdown control was filled with the columns distinct values and "(All)" successfully.
But no any kind of filtering is possible: not for string data type and not for any other types of the column.
Due to problems with the hierarchical settings algorithm.BR,
dx2003
0 -
Thanks,
We've already fixed all these bugs. Actually we are testing a new build. As soon as we complete necessary tests, we will release a revised version of the grid (normally this week).
Best regards,
Dapfor
0 -
Hi,
We've released the .NetGrid v.2.8.3 without this bug.
Best regards,
Dapfor
0
Please sign in to leave a comment.
Comments
4 comments