ag-grid v19 filters are not retained - ag-grid

We were using ag-Grid v9. We updated to ag-Grid v19.
We have a drop down in which multiple categories are loaded, we can select one category at a time and its data is loaded in the ag-Grid.
We apply column filters for a selected category and respective rows get filtered. However when we change the category the applied filters are not retained.
Earlier with v9 it was working correctly
Earlier we were using OnAfterFilterChanged() but with v19 it got deprecated so we are using onFilterChanged()

To retain the state of grid filters, sort etc we should update data rather than replace data.
Use the grid property deltaRowDataMode=true
Very nicely explained in the article DataUpdate

Related

Dynamically update auto generated group-columns when groupMultiAutoColumn enabled

Is there any way to update the properties of an auto-generated row-group column when you introduce an additional level of column grouping?
If I group on one column, I can use Grid API's setAutoGroupColumnDef, however when groupMultiAutoColumn is enabled, I cannot share this definition across each auto-generated column
I've unsuccessfully tried using Grid API's setColumnDefs after getting all columns back from the Column API but these don't appear to be compatible with the Grid API and breaks my grid
The specific issue is that within my application we have application-level column types like number-only, checkbox, multi-select, etc. these have their own filters that work fine for a non-grouped column, but when the auto-generated row-group column is generated it defaults to the set-filter, which is not consistent with the non-grouped columns, thus I want to be able to dynamically apply filter, filterParams, keyCreator etc.

How can I delete a row in ag-grid while using InfiniteRowModel?

I'm trying to remove rows from my ag-grid dynamically. My grid currently uses rowModelType: "infinite". I've been using the updateRowData function for adding and updating, but when I try to remove a row using this function:
deleteRow(record) {
this.agGrid.api.updateRowData({ remove: [record] });
}
I get the following warning in my console:
ag-grid: updateRowData for InfiniteRowModel does not support remove or update, only add
I've used it for both add and update and it's been working. How can I delete rows while using an infinite row model?
While working with InfiniteRowModel or ServerSideRowModel, ag-grid doesn't support deleting or updating the records.
It suggests us to gridApi.purgeServerSideCache().
I researched a bit myself regarding accessing the row data in these row model, but it doesn't provide access to it. So better to purge.

Where are stored filter params in magento 2?

I need to export the products catalog after I applied a filter. I made a custom button for this, but in the query I need the filters already applied on the grid. Is it possible to get them from the global variable? I noticed that if I refresh the page, the filters are kept, but I do not know where they are from.
You can find applied filters data at the ui_bookmark table of your database;
SELECT `namespace`, `config` FROM `ui_bookmark`;

knockout - update UI (filter data) based on select/dropdown choice?

How can I update this UI based on the selection made in the select/dropdowns?
For example, if I select a member name from the select/dropdown, I want the table to update/filter to only show those member rows (member names are in far right column) AND their corresponding date header (the gray background).
If I select a provider name from the select/dropdown), I want the table to update/filter to only show those provider rows (provider names in left column) AND their corresponding date header (the gray background).
I'm using the KO mapping plugin. The dummy data is hard coded and would eventually be returned via ajax.
Here's a fiddle of all the code (it's all just inlined in the HTML pane). You could copy/paste this and run it locally if you wanted, as well.
http://jsfiddle.net/qBGTh/
Any help/direction is greatly appreciated!
My suggestion is to use a computed value at eob level returning the filtered array. To add this computed value during the mapping process, you must customize the eob object creation using a create callback in the mapping options parameter (see mapping doc)
Here is the updated fiddle to see it in action.
Also don't forget to add 2 more observables to capture current values for the 2 select elements. The computed value will depend on those 2 observables.
Note: the provided fiddle will not run on IE as github where is located the
mapping javascript does not return the content-type header required by IE.

SqlDataSource filter on conditional dropdownlist values

i have 3 dropdownlists that i need to filter my datasource at runtime.
Each of the dropdownlists must be combined with the other two BUT they also have a 'special' value of "ALL". in this case i want to disable filtering on the specific filed and show all values.
Does this come with some out of the box functionality from asp.net or i have to build the string every time ?
After searching in many places i finally found out that there is NOT an out of the box functionality of asp.net to dynamically build WHERE clauses based on the values of every control that i want to participate in filtering.
I ended up with custom coding on the gridview selectedindexchanged event that builds the selectcommand text and binds the gridview again.
works fine!