https://stackblitz.com/edit/angular-oc4d4c-ss8dyk?file=app/app.component.ts
Hi Mauro,
Thank you for the provided details.
The undesired behavior is caused due to the data being manually updated. In this case, the directive skip property should be set to 0 when manually filtering the data:
export class AppComponent {
@ViewChild(GroupBindingDirective) dir: GroupBindingDirective;
...
public applyFilter(value: any): void {
this.gridData = filterBy(this.data, {
logic: 'and',
filters: [
{
field: 'firstName',
operator: 'contains',
value: value.target.value,
ignoreCase: true,
},
],
});
this.dir.skip = 0;
}
Here is an updated example demonstrating that suggestion:
https://stackblitz.com/edit/angular-oc4d4c-76mi5e?file=app/app.component.ts
I hope this helps.
Regards,
Svet
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.