Datagrid String Filter malfunction or not working at all #5062
-
Describe the bugThe issue resides in the fact that after we fetch the data that we want to populate cells with from an endpoint, and create a datagrid, after filtering the results of a specific column (let's name it 'name') by providing a string that does not exist in the column (some gibberish data), and clearing the filter afterwards, no data is populating the datagrid. The example I've given in Stackblitz vaguely represents the issue I have. It has another issue however - the applied string filter does not work at all. How to reproduceThe example is based on an already opened bug. Steps to reproduce the behavior:
Expected behaviorVersionsApp
Device:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This seems more like a question about how to implement server driven datagrids. The stackblitz provided seems to mock a backend response but I'm confused for how it filters items in the Here is an example that implements a server driven datagrid and mocks the backend. Filtering / sorting etc is already set up. In a real application, a network call is made to the server that handles the filtering, sorting and pagination with the state information passed when the network call is made. When the response is resolved, the datagrid item list is updated for that state. I'm going to convert this to a discussion because it is related to implementing a server driven datagrid and not directly related to an issue with the datagrid itself. Let me know if I am missing something here and I am happy to adjust accordingly. |
Beta Was this translation helpful? Give feedback.
-
I've recreated the problem I was struggling with locally. Here is the final version of the Stackblitz example Click on the input "scroller" above the datagrid. This will filter the datagrid by the color "Black". You will find that after a few sortings / filterings, the datagrid becomes empty, no results are visible, but the footer shows the correct number of elements that ought to be displayed in the datagrid. |
Beta Was this translation helpful? Give feedback.
-
When I turn Ivy on, the Datagrid filtering seems to work fine. We've seen some issues with turning off Ivy (and the Angular compatability layer). There might be a fix in the works #5117 that helps, but turning on Ivy should also help. |
Beta Was this translation helpful? Give feedback.
-
This issue is resolved in 3.1.10 and above. |
Beta Was this translation helpful? Give feedback.
When I turn Ivy on, the Datagrid filtering seems to work fine. We've seen some issues with turning off Ivy (and the Angular compatability layer). There might be a fix in the works #5117 that helps, but turning on Ivy should also help.