How to filter two data fields in GridTemplateColumn

2 posts, 0 answers
  1. Amol
    Amol avatar
    57 posts
    Member since:
    Apr 2008

    Posted 31 Jul 2009 Link to this post

    Hello Team,

    I am having a grid with template column and having two data field to be displayed in it like
      <telerik:GridTemplateColumn DataField="Subject"  HeaderText="Coaching Activities & Relationship" 
                                UniqueName="Subject" SortExpression="Subject" FilterControlWidth="95%" AutoPostBackOnFilter="true"  CurrentFilterFunction="Contains" > 
                                 <HeaderStyle HorizontalAlign="Center" Width="300px"  /> 
                                <ItemStyle HorizontalAlign="left" Width="300px" /> 
                                        <asp:Label ID="lblSubject" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Subject") %>'></asp:Label><br /> 
                                    <asp:Label ID="lblNoteDetail" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.NoteDetail") %>'></asp:Label> 
    I need the filter for both the data field with single text box,
    Please let me know if you have any way for this.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 Jul 2009 Link to this post

    Hello Amol,

    You can refer to the following code library submission which explains an almost similar scenario. Probably this should help you get started:
    Individual filtering and sorting for "sub-columns" in template column

  3. DevCraft R3 2016 release webinar banner
Back to Top