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

Adjusting product quantity in a listview

4 Answers 53 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 06 Sep 2013, 06:41 PM
Hi All,

I have a listview that binds to a list of products. Products have a quantity property, which will be specified by users.
I'd like to allow user to adjust quantity using "-" or "+" buttons. Basically, something like this: 

 
 Product Name                                               - (10) + 

Could anyone help me with this? A jsfiddle snippet would be perfect. 


Thanks, 

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 10 Sep 2013, 02:57 PM
Hello Jeff,

The best approach for this would be to use MVVM binding. A very similar case is present in our TODO MVC sample application - feel free to examine its source code for details. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Accepted
Robin
Top achievements
Rank 1
answered on 10 Sep 2013, 03:53 PM
Not sure if this is the proper way to do it, but here is a quick sample.

http://jsbin.com/uTArUzA/2/edit

Robin
0
Jeff
Top achievements
Rank 1
answered on 10 Sep 2013, 04:09 PM
Thanks Robin. This is exactly what I'm looking for.
0
Jeff
Top achievements
Rank 1
answered on 10 Sep 2013, 04:10 PM
Thanks Petyo. I will look into this sample as well.
Tags
ListView (Mobile)
Asked by
Jeff
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Robin
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
Share this question
or