Skip to content

Commit bb215bb

Browse files
Merge pull request #338 from Syncfusion-Content/hotfix/hotfix-v26.2.4
DOCINFRA-2341_merged_using_automation
2 parents defda74 + 12408ac commit bb215bb

File tree

1 file changed

+4
-3
lines changed
  • ej2-javascript/code-snippet/multiselect/basic-cs1

1 file changed

+4
-3
lines changed

ej2-javascript/code-snippet/multiselect/basic-cs1/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22

33

4-
import { MultiSelect, CheckBoxSelection } from '@syncfusion/ej2-dropdowns';
4+
import { MultiSelect, CheckBoxSelection, FilteringEventArgs } from '@syncfusion/ej2-dropdowns';
5+
import { Query } from '@syncfusion/ej2-data';
56

67
MultiSelect.Inject(CheckBoxSelection);
78

@@ -32,9 +33,9 @@ let msObject: MultiSelect = new MultiSelect({
3233
filtering: function (e: FilteringEventArgs) {
3334
let query = new Query();
3435
//frame the query based on search string with filter type.
35-
query = (e.text != "") ? query.where("country", "startswith", e.text, true) : query;
36+
query = (e.text != "") ? query.where("sports", "startswith", e.text, true) : query;
3637
//pass the filter data source, filter query to updateData method.
37-
e.updateData(searchData, query);
38+
e.updateData(sportsData, query);
3839
}
3940
});
4041
//render the component

0 commit comments

Comments
 (0)