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

Filter By Column Is Not Working Properly in Rad grid

3 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kannadasan
Top achievements
Rank 1
Kannadasan asked on 19 Sep 2011, 10:56 AM

We used Rad grid  in our Application, in that Filter Column Template is used to Filter the Following Data.

  • LG
  • NOKIA
  • AT&T
  • ORANGE

    In the above list the term β€œAT&T” itself not filtering the Data. Because of β€œ&” Special Character .How to Filter this scenario having Some Special character. Given below is the js code

function PartnerIndexChanged(sender, args) {

var PartnerView = $find("<%=rgResults.ClientID%>").get_masterTableView();
PartnerView.filter("PartnerName", args.get_item().get_value(), "Contains");
}

 

                                                                      

3 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 21 Sep 2011, 10:18 AM
Hello Kannadasan,

 The latest version of RadGrid should handle correctly filtering by this special character. If you are having difficulties firing the filter command from the client you can try escaping the special symbol with a slash or handling the filter command in the ItemCommand event on the server and modifying there the filter value.

Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Mayur
Top achievements
Rank 1
answered on 10 May 2014, 01:18 PM
Hi,

I am using radgrid in which i am using filter ,but when i try to enter special characters along with text for eg: building [ then filter is not working.Please Suggest.
0
Marin
Telerik team
answered on 12 May 2014, 07:30 AM
Hello,

You can escape any unsupported symbols with a slash character before them by modifying the filtering expression on the server as suggested in the previous post.

Regards,
Marin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Kannadasan
Top achievements
Rank 1
Answers by
Marin
Telerik team
Mayur
Top achievements
Rank 1
Share this question
or