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 11 Views
AJAX and Web 2.0
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:16 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
Radoslav
Telerik team
answered on 31 Oct 2013, 07:02 AM
Hi Gary,

To allow sorting of the RadGrid you need to set AllowSorting property to true. Then when the user clicks on the columns header the RadGrid will be sorted by Columns SortExpression’s field - In your case by Code field. More information about sorting you can find here:
http://www.telerik.com/help/aspnet-ajax/grid-basic-sorting.html

I hope this helps.

Regards,
Radoslav
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
AJAX and Web 2.0
Asked by
Gary
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or