This is a migrated thread and some comments may be shown as answers.
VM Function used for mvvm source is called 4 times!
1 Answer 5 Views
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 08 Oct 2018, 10:05 PM

I have recreated this problem in the kendo dojo...  I do not understand why a function within my viewmodel is called 4 times when it is clearly only bound once.  I see this in production and in the dojo, so it is clearly an issue with either they way I am configuring/binding/using mvvm or something within kendo.

See the dojo:

http://dojo.telerik.com/uhENaZAh/11

Thanks for any help or clarity,

J. Foulk

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 10 Oct 2018, 01:03 PM
Hello Joshua,

I replied in the support thread with the same subject you opened. To summarize here as well, when the scenario involves source binding we recommend binding to a dataSource instance, as demonstrated in the following section of the documentation, instead of binding to a method that returns an array.

Regards,
Ivan Danchev
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
Joshua
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or