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

Is there a way to disable LoadMore in the AutoComplete view?

Basically, have the "MaximumSuggestions" actually be the maximum suggestions. Say, if I set the max to 4 but there are more, just display the 4 without giving the option to LoadMore (hide the button).

Some other views have the AllowLoadMore property, but it's not present in AutoComplete.

1 Reply

DR Dhanasekar R Syncfusion Team January 16, 2019 11:37 AM UTC

Hi Gabriel, 
 
Greetings from Syncfusion. 
 
Query: “How to hide LoadMore button?” 
 
If we set MaximumSuggestion as 4 on SfAutoComplete, there will be four items on the drop down along with the LoadMore view at the bottom. There is no option to hide load more button in Suggestion box. 
 
In order to hide load more, we can set the height of drop down with MaximumDropDownHeight property. For example, if the DropDownItemHeight is 50, then we have to set MaximumDropDownHeight property to 200 (50 * 4).  
 
Please try our above solution and let us know if you have any further clarifications on this. 
 
Regards, 
Dhanasekar 


Loader.
Live Chat Icon For mobile
Up arrow icon