I want autocomplete instead of numerictextbox in filter area

4 posts, 0 answers
  1. Won Bae Jung
    Won Bae Jung avatar
    3 posts
    Member since:
    Jul 2020

    Posted 16 Oct 2020 Link to this post

    url : https://dojo.telerik.com/@kjvjung/afUwuZah

    Freight must be number   

    so good : Freight: { type: "number" }    

     

    but, I just want the Freight in tr.k-filter-row to be autocomplete, not numerictextbox.

     

    How???

     

    thank you.

  2. Neli
    Admin
    Neli avatar
    432 posts

    Posted 20 Oct 2020 Link to this post

    Hello,

    Such an issue is discussed in the StackOverflow thread linked below. In the link, there is an example of DropDownList used as a custom editor for a filter row column. The same approach could be applied for AutoComplete:

    - https://stackoverflow.com/questions/25218008/kendo-grid-customize-filter-row

    Also, the Filter Menu Customization demo could be helpful:

    - https://demos.telerik.com/kendo-ui/grid/filter-menu-customization

    I hope this helps.

    Regards,
    Neli
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  3. Won Bae Jung
    Won Bae Jung avatar
    3 posts
    Member since:
    Jul 2020

    Posted 23 Oct 2020 in reply to Neli Link to this post

    Thank you. However, it is not the correct answer.
    I just want the text filter to appear even for numeric data.
    Is there a way?
  4. Neli
    Admin
    Neli avatar
    432 posts

    Posted 27 Oct 2020 Link to this post

    Hi,

    By default when a field is of a type "number" the NumericTextBox will be used for editing and for the filter row menu.  Another option to customize the input for the filter value is to use the columns.filterable.cell.template option:

    - https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/columns.filterable.cell#columnsfilterablecelltemplate

    I hope this helps.

    Regards,
    Neli
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top