change language without destroy

2 posts, 0 answers
  1. Bridge24
    Bridge24 avatar
    90 posts
    Member since:
    Jan 2009

    Posted 24 Feb 2017 Link to this post

    Hi kendo team and users, I read that sample about changing the grid language, on that link:

    I tried to edit that demo, and change the "full grid reconstruction" to a simple setOptions, and it seems to work:

    The $.getScripts replace the Grid prototype, so I just update the current gri messages from the prototype, like that:

      messages: kendo.ui.Grid.prototype.options.messages

    Do you suggest to use that method or not? possible memory leak or something else?

    And, is it available for all other kendo components?

    For now, everything works fine, and the language change seems faster than rebuilding the whole grid.

    Thank you

  2. Vasil
    Vasil avatar
    1642 posts

    Posted 28 Feb 2017 Link to this post

    Hello Dani,

    The setOptions method is not supported for all of the widgets. For these that have the method, it will not leak.

    Additionally you may check the known issues about using setOptions in our public repository here:

    If you find an issue with memory leaking, please let us know, so we can fix it.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top