New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datagrid column filters do not play nice with tree grid #1281
Comments
I think we should move this to EP project. Can you move it for me @clepore I numbered your issues so i can respond to them. Also we need a way to reproduce these better.
|
I'll look at the others, but I can respond to 4 now: I did try copying the Tree formatter code into the component, but the code that gives the expand/collapse button function wasn't finding the button. |
Ok. I was thinking it would be better for 4. to make the concept of a subFormatter so you can specify that and in some formatters that portion can be formatted out. Fx to isolate the text part of the tree formatter. |
From my recollection this was discussed during the initial design but the "expected" version does seem more readable to me. What do you think @kayiuho ? |
I think 2 was also resolved by 1 being fixed. If I can reproduce it in enterprise-ng again, I'll let you know. |
@tmcconechy just from looking at the visual comparison, the "expected" version does seem to make more sense in terms of visual hierarchy. It could be further investigated/tested with different states to see if the pattern breaks at any level.. maybe a prototype could help. |
#3 was pushed in Dec sprint. |
In summary
So we have to divide this ticket. Can you please make a new issue for #4 if you still want it @chrisfried |
Behavior number 2 still happens when you apply filter that match the parent node. Expand/collapse button is displayed but doesn't do anything.
|
@deep7102 Can you take a look at this extra case? |
At the moment the reason that last part on #2 doesnt work is there are no children that match under there. I notice it says "Expectation: If a parent is a match, it should be expandable to view all children." Do we really think it should show the children even if they dont match? Im not so sure, and leaning towards this being the correct/acceptable behavior? What do we think? @EdwardCoyle @clepore @pwpatton @deep7102 @brianjuan @chrisfried ? |
For default search behaviour I think it could depend. Maybe a switch is in order (allowChildExpandOnMatch) or something. In landmark we have an example where we allow expansion of a matching node even when the children don't match the search criteria (we are lazy loading and manage all this behaviour ourselves w/o the default search/filter since we cannot do this in memory). |
Add this as api settings allowChildExpandOnMatch === true
allowChildExpandOnMatch === false
|
Sounds like that would cover it - big change? |
Could be thinking thru it need to track filter and filter nodes and depths etc |
Ok i suggest we make a new issue for later then. This isn't totally in scope at this time. |
I think we're good to create a separate ticket for the implementation of the big changes for number 2. Will now move this Done, since https://4140-beta0-enterprise.demo.design.infor.com/components/datagrid/test-tree-filter.html is working as expected for all other suggested behaviors. |
Added the new issue #1422 |
We've been experimenting with tree grid on the data catalog project, and have run into a number of issues that make it less than useable. Issues were found in 4.11. Most of them are likely more to do with ids-enterprise, but I'm putting them all here. Writing this on my phone, I can add screenshot examples as needed next week.
1. Behavior: Filter only matches top level tree items.
Expectation: Filter should match items lower in the tree, displaying the matched item as well as the parents, grandparents, etc. for context~~
2. Behavior: Matching a row with children continues to display the expand/collapse button, but clicking it doesn't do anything. Also sometimes causes general weirdness with indentation that I'll try to reproduce next week.
Expectation: If a parent is a match, it should be expandable to view all children. I'm less sure of what the behavior should be if one of its children is also a match...~~
3. Behavior: Tree grid formatting is misleading. The indentation of a child matches the indentation produced by the expand/collapse button on the parent, making it appears as if they are in the same level.
Expectation: Text of sibling elements should all have matching indentation, the expand/collapse button should not change indentation
4. Behavior: Applying custom formatting to the column with the expand/collapse button with an Angular component does not seem possible without breaking the tree.
Expectation: Custom formatting should remain possible alongside tree grid
The text was updated successfully, but these errors were encountered: