This is a migrated thread and some comments may be shown as answers.

#=dataitem.value# tags

1 Answer 50 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Олег
Top achievements
Rank 1
Олег asked on 27 Feb 2017, 07:25 PM

Good day to forum members!

I have such a question-

what operations can I do with tags like #=dataitem.value# ?

In demos I saw expressions like 

#=dataitem.value + dataitem.value1 + ...# 

So, what else can I do with these ones?

Can I use any math function?

Can I round result?

One yet thing - can I work with #=dataitem.value# like operator in my .cs file? For example, convert it to value type? Something like decimal d=Convert.ToDouble("#=dataitem.value {0}", 1); ?

I'm not successful in any of these things;

Sorly, I'm new in telerik and ASP.

1 Answer, 1 is accepted

Sort by
0
Олег
Top achievements
Rank 1
answered on 28 Feb 2017, 11:52 AM

One more thing:

Expression like #=dataItem.Cat1Percent + dataItem.Cat2Percent + dataItem.Cat3Percent + dataItem.Cat4Percent...# calculates double values wrong.:

2.68+7.61+4.96+2.3+1.98+2.7+1.08+0.56+0.68+0.32+0.32 = 25.189999999999997

O my god, what can I do with it?

Tags
Chart (HTML5)
Asked by
Олег
Top achievements
Rank 1
Answers by
Олег
Top achievements
Rank 1
Share this question
or