#=dataitem.value# tags

2 posts, 0 answers
  1. Олег
    Олег avatar
    6 posts
    Member since:
    Feb 2017

    Posted 27 Feb 2017 Link to this post

    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.

  2. Олег
    Олег avatar
    6 posts
    Member since:
    Feb 2017

    Posted 28 Feb 2017 in reply to Олег Link to this post

    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?

Back to Top