Clearable number inputs in grid

1 Answer 20 Views
Filter Grid NumericTextBox
Nils
Top achievements
Rank 1
Veteran
Iron
Nils asked on 06 Oct 2021, 10:05 AM

Hey everyone,

I have a grid with multiple text and numeric columns. I have hidden the filter menu, which comes with an clear button.

The text columns are autocompletes, which have a clear button inside the cell.

My Problem is the numeric input elements ("k-numerictextbox") dont have a clear button inside.

I have tried around adding them later with Javascript and tried using a template, but that didnt work out and was very fragile.

 

Any ideas how to get that going?

Thanks 😊

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 11 Oct 2021, 06:51 AM

Hi Nils,

Thank you for the details provided.

In order to achieve the desired behavior, as the numeric does not have a clear button out of the box, I would recommend using it as a string field.

The following dojo example represents an implementation of an autocomplete for a string field filter:

I hope this information helps.

Kind Regards,
Anton Mironov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Filter Grid NumericTextBox
Asked by
Nils
Top achievements
Rank 1
Veteran
Iron
Answers by
Anton Mironov
Telerik team
Share this question
or