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

Large dataset require filter after first three letters entered

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.

1 Reply

MK Muneesh Kumar G Syncfusion Team 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.  
 


Loader.
Live Chat Icon For mobile
Up arrow icon