This is a migrated thread and some comments may be shown as answers.

Turn off autocomplete on filter?

4 Answers 848 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 30 Jan 2015, 03:25 PM
Hi, is there a direct way to turn off autocomplete on filter without having to use some sort template?  The hack work-around I'm playing around with at the moment is setting MinLength to a unrealistic amount so the autocomplete never fires off.

columns.Bound(m => m.UserName).Title("User Name").Width(115).Filterable(f => f.Cell(c => c.Operator("contains").ShowOperators(false).MinLength(5000)));

4 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 1
answered on 30 Jan 2015, 04:07 PM
Cleaner work-around I'll go with is just setting filter to an empty datasource so it doesn't copy from grid's datasource.  Filter still works this way but I don't have to worry about autocomplete feature trying to re-hit grid datasource when I don't want it to.

columns.Bound(m => m.UserName).Title("User Name").Width(115).Filterable(f => f.Cell(c => c.Operator("contains").ShowOperators(false).BindTo(Enumerable.Empty<string>())));
0
Alexander Popov
Telerik team
answered on 03 Feb 2015, 02:09 PM
Hello Bob,

Both workarounds should work and there is nothing else we could suggest except using a Template function.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
ajeet
Top achievements
Rank 1
answered on 02 Feb 2016, 03:51 AM
How can we achieve this in kendo ui grid?
0
Alexander Popov
Telerik team
answered on 04 Feb 2016, 08:32 AM
Hello ajeet,

In case you are not using the ASP.NET MVC wrappers, then I would suggest using the columns.filterable.ui function to manually initialize the widget used for filtering. This would allow you to configured them as needed.

Regards,
Alexander Popov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Bob
Top achievements
Rank 1
Alexander Popov
Telerik team
ajeet
Top achievements
Rank 1
Share this question
or