Hello,
I want to use Client Template in RadHtmlChart but my data's column name has a special character.
My sample is here (in rune time in c#),
TooltipsAppearance.ClientTemplate = "#=dataItem."+variableX+"#";
VariableX value is "T-001" or "T - 001".
How can i define it?
3 Answers, 1 is accepted
0
Danail Vasilev
Telerik team
answered on 16 Sep 2014, 01:25 PM
Hi Ahmet,
Special characters in field names, passed to the chart, are escaped by surrounding the name with quotes and brackets. For example:
ASPX:
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thanks for your help, it works but i want to use like that
TooltipsAppearance.ClientTemplate = "#=dataItem[\\'" + YAxisColumn + "\\']# - Tarih #= kendo.format(\"{0:yyyy-MM-dd HH:mm}\",dataItem.CREATE_DATE) #";
LabelsAppearance.DataFormatString = "{0:d}";
This time, don't allow the use of the second data.
Please help once again.