Double culture on demand

2 posts, 0 answers
  1. Omar
    Omar avatar
    24 posts
    Member since:
    Aug 2018

    Posted 27 Jul Link to this post

    Hi,

    Is there a way to chose chart culture depending on session value.

    Something in Jquery, such as:

    <script type="text/javascript" src="cul/kendo.culture.sv-SE.min.js"></script>
        <script type="text/javascript" src="cul/kendo.culture.en-US.js"></script>
      <script>
         function getit() {
             var lang =$('#<%=hfv.ClientID%>').html();
              if (lang = "sv-SE") {
                   kendo.culture("sv-SE");
                  alert("sv");
               }
               else {
                   kendo.culture("en-US");
                  alert("en");
              }
         }
        onload=getit;
        </script>

     

    The problem with the above, is that it dos not work.

    Any idea how to do that.

    Regards,

    Omar

     

  2. Omar
    Omar avatar
    24 posts
    Member since:
    Aug 2018

    Posted 27 Jul Link to this post

    I found the solution.

Back to Top