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

Odd DataStringFormat Behaviour

1 Answer 24 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 2
Ron asked on 08 Oct 2013, 01:05 PM
I have noticed since I have upgraded to the latest version release of the Telerik ASP controls a strange behaviour with the DataStringFormat.  Previously, all my HTMLChart controls I was just specifying DataStringFormat="{0}" as I was already formatting the returned date from the SQL query in the MM/dd/yyyy format.  Once I upgraded my controls, whenever a date was being displayed on the chart for the axis label, it would instead show the actual characters {0}, not the date anymore.  I tried changing value to DataStringFormat="{0:MM/dd/yyyy}" and that did not work either, it would show like this {0:01/29/2013} on the axis.  Finally, I just took out the curly brackets and zero and used this DataStringFormat="MM/dd/yyyy" which worked.  This seems to only be a problem when using the {0} for the DataStringFormat on dates, but if it is just a number, like 10000 and I use DataStringFormat="{0:N0}" it shows correctly as 10,000.  Same thing with any other type of data aside of a date value.

Any idead why this is happening and why I cannot be consistant with the way the DataStringFormat is normally defined using the curly brackets and 0?

Thanks,
Ron

1 Answer, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 09 Oct 2013, 06:48 AM
Hello Ron,

Thanks for your feedback. I have researched the case and it turned out to be a bug, so I logged an item in our Feedback portal, where you can track its status and vote for it. I have also updated your Telerik points.

Regards,
Stamo Gochev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Chart (HTML5)
Asked by
Ron
Top achievements
Rank 2
Answers by
Stamo Gochev
Telerik team
Share this question
or