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

Non-numeric value in Numeric filter

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phani Musale
Top achievements
Rank 1
Phani Musale asked on 06 Aug 2010, 09:54 AM
HI there,

If I enter a non-numeric character in the column filter of a numeric column, the page crashes. My customer is getiing it crashed this way. I would have expected to have an inbuilt exception handling for this in RadGrid.

Is there something that you can suggest a fix for?

cheers
_Phani

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Aug 2010, 10:46 AM
Hello Phani,


When using GridumericColumn, it wont accept non-numeric characters in filter textbox since the control is RadNumericTextBox. So, using GridNumericColumn is an option for you.

And if you want to use GridBoundColumn itself and want to prevent non-numeric characters, then that is also possible by attaching "onkeyup" to textbox and then checking for the key pressed in the handler.
Refer the following forum for similar kind of scenario.
Grid Filter issue 


-Shinu.
Tags
Grid
Asked by
Phani Musale
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or