I have tried searching through threads for 20 minutes on how to use the new FilterTemplate functionality of the RadGrid to apply google type filters to my columns, but can't find anything.
Is there any working example of the google type filtering using the FilterTemplate ?
I would prefer this as my Grid has several non text columns that the google filter does not really apply to, and we would like to use normal filter functionality for that, but wire up the google suggest type for the text fields.
Also to create the grid declaratively with sqldatasource is big bonus.
Any help?
Is there any working example of the google type filtering using the FilterTemplate ?
I would prefer this as my Grid has several non text columns that the google filter does not really apply to, and we would like to use normal filter functionality for that, but wire up the google suggest type for the text fields.
Also to create the grid declaratively with sqldatasource is big bonus.
Any help?
4 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 11 May 2011, 07:23 AM
Hello Temp,
Check out the following forum thread which shows how to implement google like filtering for GridTemplateColumn. Please download the sample and try it.
How to use GridTemplateColumn in Radgrid for google-like filtering.
Thanks,
Princy.
Check out the following forum thread which shows how to implement google like filtering for GridTemplateColumn. Please download the sample and try it.
How to use GridTemplateColumn in Radgrid for google-like filtering.
Thanks,
Princy.
0
Hello,
I prepared a simple example which illustrates the "Google-like" filtering with FilterTemplate. Please find it attached to this message and let me know if it helps you.
Best wishes,
Pavlina
the Telerik team
I prepared a simple example which illustrates the "Google-like" filtering with FilterTemplate. Please find it attached to this message and let me know if it helps you.
Best wishes,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Hiren
Top achievements
Rank 1
answered on 25 Aug 2011, 07:41 AM
Hi Pavlina, i was searching for this sample from 3days today i got it and it matches my requirement, one change is that i want to apply google like filtering for all the columns.
Let me know how to do that, i want to call generic method for combobox selectedIndexChange & ItemsRequested events, based on selected filtering column it should pass the datafield name as parameter so that we can get data related to that particular column
<
telerik:GridTemplateColumn
DataField
=
"City"
HeaderText
=
"City"
SortExpression
=
"City"
UniqueName
=
"City"
>
<
FilterTemplate
>
<
telerik:RadComboBox
EnableLoadOnDemand
=
"true"
OnClientSelectedIndexChanged
=
"onClientSelectedIndexChanged"
runat
=
"server"
ID
=
"RadComboBox1"
OnItemsRequested
=
"RadComboBox1_ItemsRequested"
ShowToggleImage
=
"false"
MarkFirstMatch
=
"true"
>
</
telerik:RadComboBox
>
</
FilterTemplate
>
<
ItemTemplate
>
<%# Eval("City")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
DataField
=
"FirstName"
HeaderText
=
"First Name"
SortExpression
=
"FirstName"
UniqueName
=
"FirstName"
>
<
FilterTemplate
>
<
telerik:RadComboBox
EnableLoadOnDemand
=
"true"
OnClientSelectedIndexChanged
=
"onClientSelectedIndexChanged"
runat
=
"server"
ID
=
"RadComboBox2"
OnItemsRequested
=
"RadComboBox1_ItemsRequested"
ShowToggleImage
=
"false"
MarkFirstMatch
=
"true"
>
</
telerik:RadComboBox
>
</
FilterTemplate
>
<
ItemTemplate
>
<%# Eval("FirstName") %></
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Let me know how to do that, i want to call generic method for combobox selectedIndexChange & ItemsRequested events, based on selected filtering column it should pass the datafield name as parameter so that we can get data related to that particular column
0
Hello Giri,
Please, refer to this forum post for additional information.
Kind regards,
Pavlina
the Telerik team
Please, refer to this forum post for additional information.
Kind regards,
Pavlina
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>