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

I want autocomplete instead of numerictextbox in filter area

3 Answers 211 Views
Grid
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
Iron
Iron
n/a asked on 16 Oct 2020, 11:39 AM

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.

3 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 20 Oct 2020, 07:04 AM

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/.

0
n/a
Top achievements
Rank 1
Iron
Iron
answered on 24 Oct 2020, 01:30 AM
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?
0
Neli
Telerik team
answered on 27 Oct 2020, 02:26 PM

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/.

n/a
Top achievements
Rank 1
Iron
Iron
commented on 02 Apr 2022, 02:50 AM

thank you!

Thank you. But I'm still not satisfied with it.
Like the picture below
>23 and <50
As you type, it disappears when number fields.

 

Georgi Denchev
Telerik team
commented on 05 Apr 2022, 04:02 PM

Hello,

Number fields support only valid numbers, any other character(such as < and >) will be ignored as it will lead to an error. The input can accept only 012345679 and a decimal point ".".

Dojo example:

https://dojo.telerik.com/@gdenchev/ArONImUL 

You can test the example on the OrderID and Freight columns as they are both of type "number".

Best Regards,

Georgi

Tags
Grid
Asked by
n/a
Top achievements
Rank 1
Iron
Iron
Answers by
Neli
Telerik team
n/a
Top achievements
Rank 1
Iron
Iron
Share this question
or