Filter the results based on the text value of LinkButton

2 posts, 0 answers
  1. Gary
    Gary avatar
    2 posts
    Member since:
    Oct 2013

    Posted 28 Oct 2013 Link to this post

    <telerik:GridTemplateColumn HeaderText="Code" SortExpression="Code" UniqueName="Code" AllowFiltering="True">
             <asp:LinkButton ID="lbCCode" runat="server" Text='<%# Eval("Code") %>' />
    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.

  2. Radoslav
    Radoslav avatar
    1564 posts

    Posted 31 Oct 2013 Link to this post

    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:

    I hope this helps.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top