Bind viewmodel with Rest API in mobile application

2 posts, 0 answers
  1. shalini
    shalini avatar
    2 posts
    Member since:
    Apr 2014

    Posted 28 Apr 2014 Link to this post


    I am working with a mobile application, which has a form with many fields(for update functionality) that i like to populate using a MVVM viewmodel. Viewmodel is to be binded with a REST url. Can a datasource be used in this scenario? What is the performance optimized way to populate a form with many fields(with Textboxes, dropdowns, combobox etc.). Please provide a help link for this.
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 30 Apr 2014 Link to this post

    Hi Shalini,

    You can use a Kendo UI DataSource as part of a MVVM viewModel, however you will not need the dataSource for populating a form. I would suggest you to check this example, showing source and template binding with MVVM:

    And here is another example that shown a form bound to viewModel:

    Please note that if you decide to go with a template, you cannot bind directly a DataSource to it.

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top