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

RadGrid Filter

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prabha
Top achievements
Rank 1
Prabha asked on 26 Aug 2014, 06:11 AM
Hi All,

In RadGrid,


   <rad:GridTemplateColumn HeaderText="Is Critical" DataField="IsCritical"  ShowFilterIcon="true">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="IsCriticalLbl" Text='<%# YesNo(Eval("IsCritical"))%>'></asp:Label>
                            </ItemTemplate>
   </rad:GridTemplateColumn>

Here, i have to filter that column by the return value of 'YesNo(Eval("IsCritical")' , which is the text field of the lable. But im unable set the datafield as 'YesNo(Eval("IsCritical")' in column property.  How to set that method in datafield for filter?

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 27 Aug 2014, 11:05 AM
Hello,

You can have a look at the following help topic which provide more information on how to perform filtering for GridTemplateColumns
http://www.telerik.com/help/aspnet-ajax/grid-implementing-filtering-for-gridtemplatecolumns.html

Regards,
Marin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Prabha
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or