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

CurrentFilterFunction EqualTo

3 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Kjell asked on 30 Apr 2015, 07:46 PM

I set CurrentFilterFunction="EqualTo" and filter on number 1.

But i get number 1, 10, 11,12,13,14,21 etc......

SqlDbType is VarChar
What do i wrong?

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 05 May 2015, 08:21 AM
Hi Kjell,

I've created a sample RadGrid web site to test the described behavior. On my side the filtering works as expected. Can you run the attached application and let me know about the result?

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Kjell
Top achievements
Rank 1
Iron
answered on 05 May 2015, 10:42 AM

attached application works, but not my

Se attached image....

<telerik:GridBoundColumn DataField="Placering" HeaderText="Placering" HeaderStyle-Width="70px" FilterControlWidth="97%" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" />

0
Eyup
Telerik team
answered on 08 May 2015, 01:29 PM
Hello Kjell,

I was able to reproduce the issue on my side and contacted our dev team for further insights on the matter. They replied that this problem is already fixed and it will be resolved in the upcoming release version of the controls.

Until then, you can use the following approach:
protected void RadGrid1_DataBound(object sender, EventArgs e)
{
    GridBoundColumn col = RadGrid1.MasterTableView.GetColumn("Placering") as GridBoundColumn;
    col.CurrentFilterFunction = GridKnownFunction.EqualTo;
}

That should do the trick. Please excuse us for any inconvenience this might have caused you.


Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Kjell
Top achievements
Rank 1
Iron
Answers by
Eyup
Telerik team
Kjell
Top achievements
Rank 1
Iron
Share this question
or