We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

FilterType.Contains for dropdownlList and multiselect


How can I implement the FilterType.Contains in dropdownlList and multiselect 
----------------------------
autocomplete:
FilterType="@Syncfusion.EJ2.Blazor.DropDowns.FilterType.Contains"

5 Replies

BC Berly Christopher Syncfusion Team July 29, 2019 06:58 AM UTC

Hi Krasimir, 
  

Greetings from Syncfusion support.  
  

We have considered the reported query (“Need to provide FilterType support for DropDown components”) as a feature at our end and this support will be included in our upcoming release scheduled on mid of August 2019. We appreciate your patience until then. You can track the status of the reported issue in the below feedback link.  
  
  
Regards, 
Berly B.C 



ET ebi torabi July 29, 2019 09:43 AM UTC

Hi Berly
Thank you very much for your response and support. Whether the FilterType.Contains functionality when using the drop down box is also supported in Editing mode in the grid columns.


     
                        DataSource="@(new Syncfusion.EJ2.Blazor.DataManager(){ Url = "api/AllergyCategories/GetNameId", Adaptor= Syncfusion.EJ2.Blazor.Adaptors.WebApiAdaptor })">
 



GG Gopi Govindasamy Syncfusion Team July 30, 2019 12:29 PM UTC

Hi Ebi,   
 
Yes, by providing FilterType support For DropDownList component, we can use the FilterType in DropDownList through edit params feature in Grid. 
 
Regards, 
Gopi G.   



ET ebi torabi August 22, 2019 11:32 AM UTC

Hi Gopi

now Whether the FilterType.Contains functionality when using the drop down box is also supported in Editing mode in the grid columns?



                        DataSource="@(new Syncfusion.EJ2.Blazor.DataManager(){ Url = "api/AllergyCategories/GetNameId", Adaptor= Syncfusion.EJ2.Blazor.Adaptors.WebApiAdaptor })">
 if yes ,Please give an example


GG Gopi Govindasamy Syncfusion Team August 23, 2019 11:04 AM UTC

Hi Ebi, 

Thanks for your update.  

Query: “now Whether the FilterType.Contains functionality when using the drop down box is also supported in Editing mode in the grid columns? 

As per your requirement, we have prepared a sample to render a drop-down list with filtering in the Grid column while editing a record. We have achieved your requirement by using the EjsGrid EditParams feature. Please refer to the code example below.  

<EjsGrid DataSource="@Orders> 
    .. 
    <GridColumns> 
…………………………………….. 
        <GridColumn Field=@nameof(Order.ShipCountry) HeaderText="Ship Country" EditType="dropdownedit" Edit="@countryDropDownOptions" Width="150"></GridColumn> 
    </GridColumns> 
</EjsGrid> 
 
@code{ 
    public object countryDropDownOptions { get; } = new EditOptions( 
       new 
       { 
           allowFiltering = true, 
           filterType = "endswith" 
       }); 
    public class EditOptions 
    { 
        public object @params { get; set; } 
        public EditOptions(object p) 
        { 
            this.@params = p; 
        } 
    } 
…………... 
} 

Refer the below screenshot for the output 

 

Kindly download the sample from below  


Please get back to us if you have further queries.  

Regards, 
Gopi G. 


Loader.
Live Chat Icon For mobile
Up arrow icon