meta-magic / amexio.github.io

Amexio is a rich set of Angular 7 (170+) components powered by HTML5 & CSS3 for Responsive Design and with 80+ Material Design Themes, UI Components, Charts, Gauges, Data Point Widgets, Dashboards. Amexio is completely Open Sourced and Free. It's based on Apache 2 License. You can use it in your production grade work today at no cost or no obligation.
http://www.amexio.tech
Apache License 2.0
167 stars 72 forks source link

The filtering and/or sorting for the Data Grid is not remaining as we would expect when the data in the table is refreshed. #140

Closed jeffipson closed 4 years ago

jeffipson commented 4 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

Current behavior

We have an amexio-datagrid with the [data] tag set to "references." "references" is just an array of data objects that we want displayed in the Data Grid and it displays correctly, as seen below. We also can update the "references" array and the Data Grid will automatically update and is working as expected.

image

We can sort by the "First Name" property by typing in "Deb" into the text area and it filters only the data in "references" with "Deb" in the "First Name" and removes the rest, as seen below. This is what we would expect and is working correctly.

Capture

HOWEVER, if we have the data filtered (like in the example above) -and- then refresh "references"....the Data Grid will refresh, but it is not filtered anymore even though the text "Deb" remains in the filter field and we would expect it to still show the filtered data still. It shows all the data as if we didn't have anything filtered at all. This is not working as expected.

Capture (1)

The same thing occurs with sorting the data by the column. If we have it previously sorted and then refresh "references," the Data Grid displays the refreshed data, but it is no longer sorted anymore like we would expect it to be.

Expected behavior

We would expect the filtering and/or sorting for the Data Grid to remain in place when the data in the table is refreshed.

rashmithakkar commented 4 years ago

Hi @jeffipson Please take the update of amexio-ng-extensions 5.20.2.

Please revert if you still face any issue.

jeffipson commented 4 years ago

Thank you! We have updated in a test environment and are verifying the changes, but so far all looks good. Thanks!

jeffipson commented 4 years ago

We have found that the Data Grid does not retain the sorting after the data has been refreshed. The filtering appears to be working as expected, but the sorting does NOT. Can you look at the sorting please?

"The same thing occurs with sorting the data by the column. If we have it previously sorted and then refresh "references," the Data Grid displays the refreshed data, but it is no longer sorted anymore like we would expect it to be."