Turn off autocomplete on filter?

5 posts, 0 answers
  1. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 30 Jan 2015 Link to this post

    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)));
  2. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 30 Jan 2015 in reply to Bob Link to this post

    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>())));
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 03 Feb 2015 Link to this post

    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.

     
  5. ajeet
    ajeet avatar
    1 posts
    Member since:
    Aug 2015

    Posted 01 Feb Link to this post

    How can we achieve this in kendo ui grid?
  6. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 04 Feb Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready