I have noticed a weird issue while attempting to filter columns. Particularly columns that contain numbers. For example, I have a column called ID and there is an entry in the grid with the ID 1234. When filtering with contains on the ID column, if I type 123 into the filter box, and hit enter to run it, it will turn up nothing, or an ID thats exactly 123. ID 1234 will NOT show unless I try filtering on 1234.
I am wondering if there is a way around this at all.
I have the CurrentFilterFunction="Contains" on.
This is the column in question.
I have the ShowFilterIcon set to false as I only want the filter to be Contains.
I have an idea to make the bound column into a templatecolumn and populate the item in the behind code. I could make the item into a string, and filter on contains then. But I was hoping there would be a better way to do this.
I am wondering if there is a way around this at all.
I have the CurrentFilterFunction="Contains" on.
<
telerik:GridBoundColumn
DataField
=
"IncidentID"
HeaderText
=
"Incident ID"
HeaderStyle-ForeColor
=
"White"
ShowFilterIcon
=
"false"
AutoPostBackOnFilter
=
"true"
SortExpression
=
"IncidentID"
ItemStyle-VerticalAlign
=
"Top"
>
This is the column in question.
I have the ShowFilterIcon set to false as I only want the filter to be Contains.
I have an idea to make the bound column into a templatecolumn and populate the item in the behind code. I could make the item into a string, and filter on contains then. But I was hoping there would be a better way to do this.