Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Telerik grid Calculated column

$
0
0

Hi Kishan,

I tried to execute your example. But I'd like to sum the 2 field and I'd like to avoid an error if one of the 2 fields is empty.

So I modified the code as following:

<telerik:GridCalculatedColumn HeaderText="Total Price" DataFields="TotalShares, MarketValue"
                        Expression="(({0} == null) ? 0 : {0})  + (({1} == null) ? 0 : {1})"  />

But when run the code I have this error on RadGrid1.DataBind() :

"Syntax error: Missing operand before '=' operator."

I don't know hot to solve this problem.

Someone can help me?

Thanks


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>