
Kunal Bagga
Top achievements
Rank 1
Kunal Bagga
asked on 11 Sep 2014, 08:55 AM
Hi,
I would like to know how can we set Culture of RadHtmlChart in backend. Since based on the location the cultureinfo varies dynamically, I want to assign the cultureinfo in backend. And more over I wanted to know how can we set a customized culture to RadHtmlChart?
I would like to know how can we set Culture of RadHtmlChart in backend. Since based on the location the cultureinfo varies dynamically, I want to assign the cultureinfo in backend. And more over I wanted to know how can we set a customized culture to RadHtmlChart?
4 Answers, 1 is accepted
0
Hello Kunal,
If you want to localize the RadHtmlChart you must load initially the corresponding culture script files and then set the culture to the chartObject. More information on how this can be achieved is available in Localization of RadHtmlChart Controls help article.
The culture type can also be set dynamically with a server code block.
Regards,
Danail Vasilev
Telerik
If you want to localize the RadHtmlChart you must load initially the corresponding culture script files and then set the culture to the chartObject. More information on how this can be achieved is available in Localization of RadHtmlChart Controls help article.
The culture type can also be set dynamically with a server code block.
Regards,
Danail Vasilev
Telerik
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.
0

Philipp
Top achievements
Rank 1
answered on 11 Dec 2015, 11:39 AM
Hi Danail,
"The culture type can also be set dynamically with a server code block" - Can you show me how this can be done?
I have big problems integrating the .js files for localization of HTMLChart. Is there a way without any kendo-files, just some options to set in the base-class of the htmlchart? i only need numbers in german culture.
My problems are described here: http://www.telerik.com/forums/chart-localisation#1HYU7Jg_FkmBe4uBRH8oMw
0
Hello Philipp,
You can use the following code block to get the current culture of the page:
More information on the matter is available here - https://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo(v=vs.110).aspx
Regards,
Danail Vasilev
Telerik
You can use the following code block to get the current culture of the page:
<script type=
"text/javascript"
>
kendo.culture(
"<%=Thread.CurrentThread.CurrentCulture%>"
);
</script>
More information on the matter is available here - https://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo(v=vs.110).aspx
Regards,
Danail Vasilev
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0

Omar
Top achievements
Rank 1
answered on 27 Jul 2019, 09:04 PM
Hi Danail.
Can you please give example how to use the script. I just can not get the Thread to work.
Regards,
Omar