Adjusting product quantity in a listview

5 posts, 1 answers
  1. Jeff
    Jeff avatar
    3 posts
    Member since:
    Aug 2013

    Posted 06 Sep 2013 Link to this post

    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, 
  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 10 Sep 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Answer
    Robin
    Robin avatar
    13 posts
    Member since:
    Nov 2012

    Posted 10 Sep 2013 Link to this post

    Not sure if this is the proper way to do it, but here is a quick sample.

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

    Robin
  5. Jeff
    Jeff avatar
    3 posts
    Member since:
    Aug 2013

    Posted 10 Sep 2013 Link to this post

    Thanks Robin. This is exactly what I'm looking for.
  6. Jeff
    Jeff avatar
    3 posts
    Member since:
    Aug 2013

    Posted 10 Sep 2013 Link to this post

    Thanks Petyo. I will look into this sample as well.
Back to Top
Kendo UI is VS 2017 Ready