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

List view editing in wizard

2 Answers 128 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Ruud
Top achievements
Rank 1
Ruud asked on 08 Feb 2015, 02:13 PM
Hi guys,
Another seemly simple task but oh so time consuming... What I try to achieve here:
- create a list view where users can add items to. Only after hitting a button it will be saved to the database
- the list items should be created with a separate form (several input forms and select boxes, all with data sources)
- after filling in the list item and clicking on the Add button it should be appended to the list view items.

My challenge here is that I do not know how to accomplish this with the edit templates. They all seems to rely on some server call, which I do not want to use. I want to keep this on the client, and after all list items are filled in, then do a call to the server.

Without doubt simple, but I'm stuck here. Any hints?

Regards,
Ruud

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 11 Feb 2015, 08:11 AM
Hi Ruud,

I would suggest to follow the help topic below - it contains detailed information about how to enable CRUD operations using the ListView on the client side:
Also please note that the offline application that comes with your UI for ASP.NET MVC installation contains complete runable demo for the mobile ListView:
  • ..\Telerik\UI for ASP.NET MVC Q2 2014\wrappers\aspnetmvc\Examples\VS2012\Kendo.Mvc.Examples\Areas\razor\Views\mobile_listview\editing.cshtml

For more information about the offline application you can check the introduction topic:

Regards,
Vladimir Iliev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ruud
Top achievements
Rank 1
answered on 05 Mar 2015, 08:30 AM
Hi,
Thanks for your answer. I actually managed to get this to work by using the partial validation of the jQuery validation. So I have one big ViewModel used for all the forms in the wizard. This model is divided into several forms in the wizard (step 1, step 2, etc.). By using the partial validation of jQuery I can avoid model errors on steps not filled in yet.
Tags
ListView (Mobile)
Asked by
Ruud
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Ruud
Top achievements
Rank 1
Share this question
or