Pending Review
Last Updated: 17 Sep 2018 14:30 by ADMIN
Created on: 06 Mar 2015 16:02
Category: UI for ASP.NET MVC
Type: Feature Request
Extend Autocomplete with a customizable option to not trigger when MinLength is set and the Textbox becomes empty
In order to fix concerns from #241 ( the Autocomplete now shows a full list of items when the text entered has been deleted.  This ignores the MinLength option, and can cause unresponsiveness in the browser (since MinLength is generally there to reduce the amount of results).  From #574 this new functionality is intentional (and as such, the thread was closed as won't fix), but in practical terms, this causes issues for a lot of people.  If you really don't want to enforce MinLength when 0 results are returned, perhaps adding an extraoption like 'AlwaysEnforceMinLength' would solve this problem
Posted on: 13 Jan 2018 07:35
this still isn't working properly - I see the "enforceMinLength" property - but this doesn't work when minLength is "1".  

Worked fine in the "2015.2.805" -- what happened??????
Posted on: 08 Dec 2017 17:39
Does not make sense it do not respect the MinLength when clear data, if MinLength is 2 then it it should only display anything if it as at least two characters 
Posted on: 30 Jan 2016 21:18
No way this should be the default behaviour, it is WRONG. I've just discovered this and to me it's a plain bug. I'm using this against recordsets containing 1000's of rows, so it will kill performance unless I code around it. Telerik, please amend it. I'm fine if it's a flag as suggested, but default should be triggerOnEmptyText = false. Thanks.
Imported User
Posted on: 04 Aug 2015 16:45
I'm agree, when the textbox is empty no information must be retrieved. I think this could be optional with the proposed triggerOnEmptyText flag.
Posted on: 09 Jun 2015 09:53
If the .MinLength is set to a specific value, the read action is called by the Autocomplete box as soon as the Autocomplete Textbox becomes empty.

This behaviour is not always desired, therefore I suggest to extend the MinLength method with an optional parameter to support both behaviours.

.MinLength(int length, bool triggerOnEmptyText = true)