File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
ej2-javascript/code-snippet/multiselect/basic-cs1 Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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
67MultiSelect . 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
You can’t perform that action at this time.
0 commit comments