Skip to content

Commit ace9680

Browse files
committed
fix(igxCombo): combo-features sample adjustment - searchText on scroll + remoteData query
1 parent a3b8bd1 commit ace9680

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/combo/combo-features/combo-features.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class ComboFeatures {
5050
this.prevRequest.unsubscribe();
5151
}
5252

53-
this.prevRequest = this.remoteService.getData(this.combo2.virtualizationState, null, () => {
53+
this.prevRequest = this.remoteService.getData(this.combo2.virtualizationState, this.combo2.searchValue, () => {
5454
this.cdr.detectChanges();
5555
this.combo2.triggerCheck();
5656
});

src/app/grid/services/remote.service.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ export class RemoteService {
3939
qS += `$skip=${skip}&$top=10&$count=true&$inlinecount=allpages`;
4040

4141
if (searchText) {
42-
qS += `&$filter=substringof('` + searchText + `',ProductName)` +
43-
`&$filter=substringof('` + searchText.toLowerCase() + `',ProductName)` +
44-
`&$filter=substringof('` + searchText.toUpperCase() + `',ProductName)` +
45-
`&$filter=substringof('` + this.toTitleCase(searchText) + `',ProductName)`;
42+
qS += `&$filter=substringof('` + searchText + `',ProductName)` + ` or ` +
43+
`substringof('` + searchText.toLowerCase() + `',ProductName)` + ` or ` +
44+
`substringof('` + searchText.toUpperCase() + `',ProductName)` + ` or ` +
45+
`substringof('` + this.toTitleCase(searchText) + `',ProductName)`;
4646
}
4747
}
4848
return `${this.url}${qS}`;

0 commit comments

Comments
 (0)