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

Filtering not working in column GridTemplateColumn

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bharat
Top achievements
Rank 1
Bharat asked on 27 Jan 2014, 03:05 PM
Hi,

I have added a GridTemplateColumn to display email address as follows
 <telerik:GridTemplateColumn HeaderText="Email Address" ItemStyle-Width="100px" FilterControlWidth="100px"
                                SortExpression="Email_Address" UniqueName="EmailAddress" ShowSortIcon="true" AllowFiltering="true">
                                <ItemTemplate>
                                    <a onclick="viewVirtualContact(<%#Eval("contact_id")%>,<%#Eval("isvirtualcontact")%>)">
                                        <%# Eval("Email_Address") %></a>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>

When I try to apply any filter, filteration does not work properly.
Please suggest on this.

Tnanks
Bharat Bhushna

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Jan 2014, 03:29 AM
Hi Bharat,

Please set the DataField property of the GridTemplateColumn for the filtering to work properly.

ASPX:
<telerik:GridTemplateColumn DataField="Email_Address". . . .>
   . . .
</telerik:GridTemplateColumn>

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