VM Function used for mvvm source is called 4 times!

2 posts, 0 answers
  1. Joshua
    Joshua avatar
    1 posts
    Member since:
    Oct 2016

    Posted 08 Oct 2018 Link to this post

    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:


    Thanks for any help or clarity,

    J. Foulk

  2. Ivan Danchev
    Ivan Danchev avatar
    2150 posts

    Posted 10 Oct 2018 Link to this post

    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.

    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.
Back to Top