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

problem with grid filtering.

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 06 Mar 2009, 10:56 PM
I have a gridtemplate column in which I bind two fields from my datatable like this:

<

telerik:GridTemplateColumn HeaderText="Employer/Title" UniqueName="Employer" HeaderStyle-Width="18%">

 

 

<ItemTemplate>

 

 

<b>

 

<%

# Eval("Employer")%></b>

 

 

<br />

 

<%

# Eval("JobTitle")%>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 



I want to apply filter to the column and siplay results using one of the fields 'Employer' .
How can I apply this filter?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Mar 2009, 06:23 AM
Hi newbie,

Try setting the DataField property for the GridTemplateColumn as Employer and see whether it helps
ASPX:

<
 telerik:GridTemplateColumn HeaderText="Employer/Title" DataField="Employer" UniqueName="Employer" HeaderStyle-Width="18%">   


Thanks
Shinu
0
newbie
Top achievements
Rank 1
answered on 09 Mar 2009, 06:26 AM
thanks... that worked.
Tags
Grid
Asked by
newbie
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
newbie
Top achievements
Rank 1
Share this question
or