Hello:
it was previously from this issue raised here: https://ko.infragistics.com/community/forums/f/ignite-ui-for-angular/127165/how-to-programmatically-add-rows-to-a-datagrid-thru-button-click-without-reload?ReplySortBy=CreatedDate&ReplySortOrder=Ascending
However,
1) if i apply the filter, eg. go to Product-id and filter to show only "1"
2) click "Add new row", then it won't show it
3) until the filter is removed, eg. go to Product-id and select "All"
<igx-grid #grid [allowFiltering]="true" filterMode="excelStyleFilter" [data]="data" width="100%" height="500px" [primaryKey]="'ProductID'" [rowEditable]="true"
Any idea to by-pass this? Modified version: stackblitz.com/.../q2zkrdvm-rndm4osi
Hello Gan,
Thank you for contacting Infragistics Developer Support.
I have been looking into your question and the provided sample and what I can say is that this behavior is expected and is simply how filtered data works. If the grid is filtered by “ProductID” being equal to “1”, then in case the newly added row’s “ProductID” prop is not equal to “1”, it will not be shown in the data – it will get filtered out. This is the correct behavior.
To further demonstrate it, please, observe the following gif, where I have changed the “ProductID” column filter to “Contains”. At the moment the auto-incremented id contains “1”, it will be shown in the filtered data:
If you have any other questions regarding the IgxGrid usage, please, let me know.
Best regards,Bozhidara PachilovaSoftware Developer
hello:
I noticed some columns have the "(Blank)" option in the igx-excel-style-search, while some don't.
Is there any way, we could check-and-disable the option "(Blank)", so the new record could be shown always?
eg:
<ng-template igxExcelStyleFilterOperationsTemplate> <!-- ... other filter conditions ... --> <!-- Conditionally hide or disable "Empty" and "NotEmpty" options --> </ng-template>
or:
was trying to do something like this
this.grid?.filter('XXX', null, IgxStringFilteringOperand.instance().condition('contains'), true);
but it reloads all