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

How can I define a custom format expression token?

2 Answers 28 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Mohammad Amin Solhizadeh
Top achievements
Rank 1
Mohammad Amin Solhizadeh asked on 30 Jul 2012, 04:30 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 01 Aug 2012, 06:23 AM
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.

0
Mohammad Amin Solhizadeh
Top achievements
Rank 1
answered on 01 Aug 2012, 07:39 AM
Sorry, my mistake, what I meant was RadChart.
Thanks Petar. That's the thing I was looking for.
Tags
ChartView
Asked by
Mohammad Amin Solhizadeh
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Mohammad Amin Solhizadeh
Top achievements
Rank 1
Share this question
or