Formatting currency for a culture

4 posts, 0 answers
  1. Gary
    Gary avatar
    6 posts
    Member since:
    Jan 2013

    Posted 03 Jan 2013 Link to this post

    I am following the examples from the wensite but the following configuration still displays the currency in US Dollars.  Is there something else I need to specify in addition to the culture?  Thanks!

    $("#currency").kendoNumericTextBox({

    format: "c",

    culture: "de-DE",

    decimals: 3

    });

  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 04 Jan 2013 Link to this post

    Hello Gary,

    Did you include the culture script in the page? Please verify that the it is loaded correctly and let me know if the issue still persists.

    Regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Gary
    Gary avatar
    6 posts
    Member since:
    Jan 2013

    Posted 04 Jan 2013 Link to this post

    Thank you so much.  No I had completely missed that step.

    My page is reading a data set and populating controls with the values from the dataset.  I do not know what the culture is until I start reading the data.  If any of the data contains a money value, there will also be a linked currency record with info about that particular currency.  It has the code like USD and the name like US Dollar but no culture.

    Is there a way to add the script reference dynamically so that I can do it after I know what currency I am working with.

    Thanks!
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 08 Jan 2013 Link to this post

    Hello Gary,

    You can load the JavaScript file on demand (check this stackoverflow thread).
    Please make sure that the culture js file is loaded before initialization of the widget.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready