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

Problem in RadGrid Filter with Int or Double Value

1 Answer 228 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bony patel
Top achievements
Rank 1
bony patel asked on 01 Jul 2011, 06:25 AM
Hello,

I Use radgrid for display value. All is working fine but I have such problem in filter data in integer or double value.
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx
in demo First column  "OrderID" can't filter, Ex: I enter '102' value, So I require result is 10248,10249,10250...etc
But in result there are no row found. Plz give solution for this.

If I am trying bind column with Integer or double value then shorting result can't properly.

In my situation I use either shorting or filtering facility. I require Both in my grid. Plz give me solution.

Thank You.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Jul 2011, 09:00 AM
Hello Bony,

In the demo, the CurrentFilterFunction is set as "equalto". In order to show the required result, replace it with the function "Contains".

aspx:
<telerik:GridNumericColumn DataField="OrderID" HeaderText="OrderID" SortExpression="OrderID"
                      UniqueName="OrderID" FilterControlWidth="40px" AutoPostBackOnFilter="false" CurrentFilterFunction="Contains" FilterDelay="4000" ShowFilterIcon="false">
</
telerik:GridNumericColumn>

Thanks,
Princy.
Tags
Grid
Asked by
bony patel
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or