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

Filter the results based on the text value of LinkButton

1 Answer 18 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 28 Oct 2013, 08:20 AM
<telerik:GridTemplateColumn HeaderText="Code" SortExpression="Code" UniqueName="Code" AllowFiltering="True">
     <ItemTemplate>
         <asp:LinkButton ID="lbCCode" runat="server" Text='<%# Eval("Code") %>' />
     </ItemTemplate>
</telerik:GridTemplateColumn>
So how can I allow RadGrid to filter the results based on the text value of LinkButton? Is there a way to do that? Thanks.

1 Answer, 1 is accepted

Sort by
0
Gary
Top achievements
Rank 1
answered on 28 Oct 2013, 08:46 AM
Well, I think I found a quick tutorial on how to do this with RadGrid. I will need to use DataField attribute in this case.

http://www.telerik.com/help/aspnet-ajax/grid-implementing-filtering-for-gridtemplatecolumns.html


Tags
General Discussions
Asked by
Gary
Top achievements
Rank 1
Answers by
Gary
Top achievements
Rank 1
Share this question
or