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

Bind viewmodel with Rest API in mobile application

1 Answer 97 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
shalini
Top achievements
Rank 1
shalini asked on 29 Apr 2014, 03:12 AM
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.

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 30 Apr 2014, 08:13 AM
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!
 
Tags
MVVM
Asked by
shalini
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or