Setting Culture to RadHtmlChart in backend

4 posts, 0 answers
  1. Kunal Bagga
    Kunal Bagga avatar
    26 posts
    Member since:
    Oct 2008

    Posted 11 Sep 2014 Link to this post

    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? 
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 12 Sep 2014 Link to this post

    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
     

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Philipp
    Philipp avatar
    27 posts
    Member since:
    Mar 2011

    Posted 11 Dec 2015 in reply to Danail Vasilev Link to this post

    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

     

     

     

     

  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 12 Dec 2015 Link to this post

    Hello Philipp, 

    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
Back to Top