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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

FilterType.Contains for dropdownlList and multiselect

Thread ID:

Created:

Updated:

Platform:

Replies:

146233 Jul 26,2019 06:59 PM UTC Aug 23,2019 01:16 PM UTC Blazor 5
loading
Tags: Dropdown List
ebi torabi
Asked On July 26, 2019 06:59 PM UTC


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

Berly Christopher [Syncfusion]
Replied On 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 


ebi torabi
Replied On 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 })">
 


Gopi Govindasamy [Syncfusion]
Replied On 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.   


ebi torabi
Replied On 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

Gopi Govindasamy [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon