Nov 01, 2012, 12:30 AM
GridPanel templatecolumn databind
hi
I know that we can use template column to create customize column with one or more datafields
for example,the code as below create a TemplateColumn with 2 datafields : {amount} and {numberCol}
e.g
I'd like this templatecolumn to show the result of {amount}/{numberCol}
or
({amount}>0)?{numberCol}:0
I know that we can use template column to create customize column with one or more datafields
for example,the code as below create a TemplateColumn with 2 datafields : {amount} and {numberCol}
<ext:TemplateColumn MenuDisabled="true" Header="Template">
<Template runat="server">
<Html>
<tpl for=".">
{amount}<br />
{numberCol}<br />
</tpl>
</Html>
</Template>
</ext:TemplateColumn>
But how can i performing a logic operation on these two datafields ?e.g
I'd like this templatecolumn to show the result of {amount}/{numberCol}
or
({amount}>0)?{numberCol}:0
Last edited by dew3083142; Nov 01, 2012 at 12:40 AM.