Multiple currencies in Kendo UI Grid

2 posts, 0 answers
  1. ketan
    ketan avatar
    1 posts
    Member since:
    Jun 2014

    Posted 02 Oct 2014 Link to this post

    Hi,

    I am currently using Kendo UI Grid to display all my invoices. I am accessing all the invoices using Ajax call, which is returning json data back and then hooking up it to Kendo.data.Datasource. Everything is working perfectly fine except we have invoices that are in different currencies. I am using format:"{0:c}" to show the currency symbol and currently it is showing in USD. Is there a way if I can show multiple currencies on different rows in the same grid ? It will be nice if you can provide me with some working example.

    Thanks
    Ketan
  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 08 Oct 2014 Link to this post

    Hello Ketan,

    The best approach to achieve the outcome you need is to introduce a new column in the invoice table in the database, and to populate it with the type of the currency of the invoice. This way, when you retrieve the invoice objects, you will be able to format what is displayed in the grid as you need.

    I hope this helps. If you have further Data Access related questions, do not hesitate to get back to us.



    Regards,
    Doroteya
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
Back to Top