Hi,
I have been trying to get this to work and need some help, I have a grid Template Column and have an expression to evaluate boolean values if its true or false in the Item Template, I need to filter on these values, how can I do this? In other Itemtemplate examples I have seen recommentdations to use Datafield but If i
use the
Datafield = "IsPrivateBank" ....it takes away the Filter from column header and just leaves a checkbox, since its taking it as a boolean value
and If I use the Expression in the datafield like
DataField = "<%# Convert.ToBoolean(Eval("IsPrivateBank")) == false ? "Federal" : "Private" %>"
this results in an error too. How can I filter on the values the user sees i.e "Federal" or "Private" Please provide code example with your help, thanks in advance!!
I have been trying to get this to work and need some help, I have a grid Template Column and have an expression to evaluate boolean values if its true or false in the Item Template, I need to filter on these values, how can I do this? In other Itemtemplate examples I have seen recommentdations to use Datafield but If i
use the
Datafield = "IsPrivateBank" ....it takes away the Filter from column header and just leaves a checkbox, since its taking it as a boolean value
and If I use the Expression in the datafield like
DataField = "<%# Convert.ToBoolean(Eval("IsPrivateBank")) == false ? "Federal" : "Private" %>"
this results in an error too. How can I filter on the values the user sees i.e "Federal" or "Private" Please provide code example with your help, thanks in advance!!
<
telerik:GridTemplateColumn
HeaderText
=
"Type"
HeaderStyle-HorizontalAlign
=
"Left"
HeaderStyle-VerticalAlign
=
"Bottom"
ItemStyle-HorizontalAlign
=
"Left"
SortExpression
=
"IsPrivateBank"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblBankType"
runat
=
"server"
Text='<%# Convert.ToBoolean(Eval("IsPrivateBank")) == false ? "Federal" : "Private" %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>