Texts set by javascript

4 posts, 0 answers
  1. Elko
    Elko avatar
    23 posts
    Member since:
    Dec 2012

    Posted 24 Apr 2014 Link to this post

    Hi!

    We are having a single-page-application using asp.net mvc and creating views using razor. Creating several grids using the mvc-helper on a single view causes that the texts are transferred to the browser foreach grid. I have seen in this post https://github.com/loudenvier/kendo-global that it is possible to provide texts via javascript. But how can I prevent that the grid sends texts to the client?

    Best regards!
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 25 Apr 2014 Link to this post

    Hello Elko,

    I am afraid it is not possible to change how the translations are send to the client when using the MVC wrapper, they are also embedded into the initialization scripts of the widgets.

    Kind Regards,
    Petur Subev
    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 MVC is VS 2017 Ready
  4. Elko
    Elko avatar
    23 posts
    Member since:
    Dec 2012

    Posted 02 Oct 2015 in reply to Petur Subev Link to this post

    Hi!

    Is there any progress on this topic? Or should I create a feature request / new idea?

    Best Regards!

  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 06 Oct 2015 Link to this post

    Hello Elko,

    We do not have plans to update the way the MVC wrappers serialize their options. The messages are needed when wrappers are used, because their messages come from the resources. If you would like to localize a page/widget please use the ASP.NET MVC way.

    If you would like to localize page using JavaScript, then you will need to initialize the widget using JavaScript too.

    Regards,
    Georgi Krustev
    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
UI for ASP.NET MVC is VS 2017 Ready