MVVM update bind values of object and redraws UI elements of template

3 posts, 0 answers
  1. Neeraj
    Neeraj avatar
    139 posts
    Member since:
    May 2015

    Posted 03 Feb 2019 Link to this post


            I have selectedValue (complex object with 12-16array to which i form grid in template and other 30-35 values bound to numeric textbox) . Initially, the bind selectedValue ovject to template. When i set the object, ui gets generated, when i update the selectedValue , the whole UI gets repainted in View. It renders slow , is it made to redraw UI components again or only values in components should get updated only (no redraw) ?

  2. Neeraj
    Neeraj avatar
    139 posts
    Member since:
    May 2015

    Posted 04 Feb 2019 Link to this post

    another query would be if there is property of Array Type in object that needs to be converted to kendo.dataSource before making object observable or after making observable object we can still make that property as kendo.dataSource ? or is it not required?
  3. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1239 posts

    Posted 05 Feb 2019 Link to this post

    Hi Neeraj,

    I am not quite sure if I fully understand your questions. If you are asking whether a change in the model value will trigger re-evaluation of the entire template that renders it, the answer is yes. When a change is determined, the Kendo MVVM framework will automatically re-evaluate (and re-render) the entire template the value belongs to.

    As per the second question, could you, please, clarify it? Also, if you can provide us with a small Dojo sample demonstrating the scenario, that would be of great help.

    Veselin Tsvetanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top