public onFiltering(args: any): void {
args.preventDefaultAction = true;
let query: Query = new Query();
query = args.text !== "" ? query.where("Game", "startswith", args.text, true) : query;
let data = this.dataService.fetch(args.text).subscribe(result => {
args.updateData(result, query);
});
} |
Hi wills,
Thanks for contacting Syncfusion support.
We have checked the reported query using the asynchronous to get data. It is working as expected in our end, please find the test sample below for reference.
public onFiltering(args: any): void {args.preventDefaultAction = true;let query: Query = new Query();query = args.text !== "" ? query.where("Game", "startswith", args.text, true) : query;let data = this.dataService.fetch(args.text).subscribe(result => {args.updateData(result, query);});}
Kindly check with above sample meets your requirement. Please get back us if you need further assistance.
Regards,Ponmani M
Hi Wills,
Thanks for the detailed information.
We have modified the sample as per the provided information. But unfortunately the issue is not replicated in our end. Please find the sample and video demonstration below for your reference.
Video demonstration: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScreenCapture_4-11-2020_6.43.09_PM.mp4-16221786Kindly check with the above video and sample. Please provide the issue replicating sample, which helps us to provide you the solution at earliest.
Regards,Ponmani M
Hi Wills,
Thanks for the detailed information.
Query1: After clear the value ; and open popup at this time, cannot show all dataWe able to replicate the reported issue in our end. Currently we are validating, will check and update further details in 2 business days. In the meantime, can you please confirm the below issue reproducing sample and video demonstration for exact scenario of issue replication.
Issue reproducing sample: https://stackblitz.com/edit/angular-wwjr8b-ga1rp6?file=app.component.html
Video demonstration: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScreenCapture_5-11-2020_8.45.22_PM.mp4606167135
Query2: Anyway:why the popup cannot recycled ,when I move the get data Method from ngOninit() to onOpen()?We request you to share the use case scenario for using get data method in Open event. Based on that, we will check and update work-around solution or your requirement to resolve the reported issue.
Regards,Ponmani M