This is a migrated thread and some comments may be shown as answers.

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

2 Answers 31 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Veteran
Neeraj asked on 04 Feb 2019, 04:17 AM

Hello, 

        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 Answers, 1 is accepted

Sort by
0
Neeraj
Top achievements
Rank 1
Veteran
answered on 04 Feb 2019, 06:51 AM
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?
0
Veselin Tsvetanov
Telerik team
answered on 05 Feb 2019, 02:14 PM
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.

Regards,
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.
Tags
MVVM
Asked by
Neeraj
Top achievements
Rank 1
Veteran
Answers by
Neeraj
Top achievements
Rank 1
Veteran
Veselin Tsvetanov
Telerik team
Share this question
or