Dear,
I create tempalte colum .It contains just one Literal.I bind Data for Literal in ItemDataBound event .I combind data from 3 field on Database.How I can filter this column?
Below is my code:
HTML:
<telerik:GridTemplateColumn UniqueName="EmployeeInfo" DataType="System.String" AllowFiltering="true" AutoPostBackOnFilter="true" ItemStyle-HorizontalAlign="center" HeaderText="<%$ Resources:Strings, UR000001grvhEmployeeInfo %>"
HeaderStyle-HorizontalAlign="Center">
<ItemTemplate>
<table cellpadding="0" border="0px" cellspacing="0" width="100%" style="overflow: hidden">
<tr>
<td align="center" style="overflow: hidden">
<asp:Literal ID="UR009001litEmployeeInfo" runat="server" />
</td>
</tr>
</table>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true">
</ItemStyle>
</telerik:GridTemplateColumn>
ItemDataBoundEvent:
Literal litEmployeeInfo = (Literal)e.Item.Cells[0].FindControl(Constant.UR009001litEmployeeInfo);
litEmployeeInfo.Text = emp.EmployeeID + emp.FirstName + emp.SureName;
I create tempalte colum .It contains just one Literal.I bind Data for Literal in ItemDataBound event .I combind data from 3 field on Database.How I can filter this column?
Below is my code:
HTML:
<telerik:GridTemplateColumn UniqueName="EmployeeInfo" DataType="System.String" AllowFiltering="true" AutoPostBackOnFilter="true" ItemStyle-HorizontalAlign="center" HeaderText="<%$ Resources:Strings, UR000001grvhEmployeeInfo %>"
HeaderStyle-HorizontalAlign="Center">
<ItemTemplate>
<table cellpadding="0" border="0px" cellspacing="0" width="100%" style="overflow: hidden">
<tr>
<td align="center" style="overflow: hidden">
<asp:Literal ID="UR009001litEmployeeInfo" runat="server" />
</td>
</tr>
</table>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true">
</ItemStyle>
</telerik:GridTemplateColumn>
ItemDataBoundEvent:
Literal litEmployeeInfo = (Literal)e.Item.Cells[0].FindControl(Constant.UR009001litEmployeeInfo);
litEmployeeInfo.Text = emp.EmployeeID + emp.FirstName + emp.SureName;