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

How to filter two data fields in GridTemplateColumn

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amol
Top achievements
Rank 2
Amol asked on 31 Jul 2009, 08:58 AM
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" /> 
                            <ItemTemplate> 
                                <b> 
                                    <asp:Label ID="lblSubject" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Subject") %>'></asp:Label><br /> 
                                </b> 
                                <asp:Label ID="lblNoteDetail" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.NoteDetail") %>'></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
I need the filter for both the data field with single text box,
Please let me know if you have any way for this.

Thanks
Amol

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Jul 2009, 10:32 AM
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

Regards
Princy.
Tags
Grid
Asked by
Amol
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or