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

Large dataset require filter after first three letters entered

Thread ID:

Created:

Updated:

Platform:

Replies:

146754 Aug 17,2019 10:10 PM UTC Aug 19,2019 06:23 AM UTC Xamarin.Forms 1
loading
Tags: SfAutoComplete
David
Asked On August 17, 2019 10:10 PM UTC

Hi, I use both Telerik and yourself but Telerik has a limitation in that its every character it is going back to the result set for auto-complete.

I am wanting to only kick off a search after the first 3 characters have been entered is that at all possible.

I.e it won't perform a search till it is at the 3rd letter, as this appeas to be the only way I can get their data set down small enough for the maxjson limit of mvc api.

Muneesh Kumar G [Syncfusion]
Replied On August 19, 2019 06:23 AM UTC

Hi David, 
 
We have analyzed the requirement “Large dataset require filter after first three letters entered” in SfAutoComplete. We can achieve this requirement by using the MinimumPrefixCharacters property in SfAutoComplete as per the below code snippet.  
 
Code snippet: 
<StackLayout  
        VerticalOptions="Start"  
        HorizontalOptions="Start" 
        Padding="30"> 
        <autocomplete:SfAutoComplete x:Name="autoComplete" MinimumPrefixCharacters="3" 
                                     HeightRequest="40"> 
            <autocomplete:SfAutoComplete.AutoCompleteSource> 
                <ListCollection:List x:TypeArguments="x:String"> 
                    <x:String>India</x:String> 
                    <x:String>Uganda</x:String> 
                    <x:String>Ukraine</x:String> 
                    <x:String>Canada</x:String> 
                    <x:String>United Arab Emirates</x:String> 
                    <x:String>France</x:String> 
                    <x:String>United Kingdom</x:String> 
                    <x:String>China</x:String> 
                    <x:String>United States</x:String> 
                    <x:String>Japan</x:String> 
                    <x:String>Angola</x:String> 
                </ListCollection:List> 
            </autocomplete:SfAutoComplete.AutoCompleteSource> 
        </autocomplete:SfAutoComplete> 
    </StackLayout> 
 
We have prepared the simple sample for your reference. Please try the attached below sample and let us know if you have any concern on this. 
 
Sample Link: 
 
UG Link: 
 
Please let us know if you have any other queries.    
 
Thanks,   
Muneesh Kumar 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