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

    Hi,

    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
    Admin
    Kiril Nikolov avatar
    2564 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:

    http://demos.telerik.com/kendo-ui/web/mvvm/source.html

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

    http://demos.telerik.com/kendo-ui/web/mvvm/index.html

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

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top