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

Double culture on demand

1 Answer 16 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Omar
Top achievements
Rank 1
Omar asked on 27 Jul 2019, 08:52 PM

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

 

1 Answer, 1 is accepted

Sort by
0
Omar
Top achievements
Rank 1
answered on 27 Jul 2019, 09:17 PM

I found the solution.

Tags
Chart (HTML5)
Asked by
Omar
Top achievements
Rank 1
Answers by
Omar
Top achievements
Rank 1
Share this question
or