How can I define a custom format expression token?

3 posts, 1 answers
  1. Mohammad Amin Solhizadeh
    Mohammad Amin Solhizadeh avatar
    2 posts
    Member since:
    Feb 2010

    Posted 30 Jul 2012 Link to this post

    According to this article, we can use different token in chartview to format our data.
    I want to define a new token, for example a new token named such as #dateindays that
    converts DateTime data to day number in current year. Is it possible to do so, and if yes, how?
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 01 Aug 2012 Link to this post

    Hello Mohammad,

    There must have been some misunderstanding. First, the provided link directed me to a help topic of RadChart and you mentioned RadChartView. These are two different controls (RadChartView being the newer one). In RadChart it is not possible to define your own token (please let me know which part of the help topic made you think that, so we can update it not to mislead other customers). I suggest you use the dateindays property of the underlying data item, which you can access like this #DATAITEM.dateindays.

    Kind regards,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Mohammad Amin Solhizadeh
    Mohammad Amin Solhizadeh avatar
    2 posts
    Member since:
    Feb 2010

    Posted 01 Aug 2012 Link to this post

    Sorry, my mistake, what I meant was RadChart.
    Thanks Petar. That's the thing I was looking for.
Back to Top