Hi, I want to apply filter on item template contains ternary how can do this.
<telerik:GridTemplateColumn UniqueName="IsAverage" HeaderText="Average/Sum" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" AllowFiltering="false" >
<ItemTemplate>
<asp:Label Id="active" runat="server" Text='<%# Convert.ToBoolean(Eval("IsAverage")) == true ? "Average" : "Sum" %>'></asp:Label> </ItemTemplate>
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</telerik:GridTemplateColumn>
please provide example or solution with source code.
<telerik:GridTemplateColumn UniqueName="IsAverage" HeaderText="Average/Sum" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" AllowFiltering="false" >
<ItemTemplate>
<asp:Label Id="active" runat="server" Text='<%# Convert.ToBoolean(Eval("IsAverage")) == true ? "Average" : "Sum" %>'></asp:Label> </ItemTemplate>
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</telerik:GridTemplateColumn>
please provide example or solution with source code.