Post Selected items back to Controller

2 posts, 0 answers
  1. Zong
    Zong avatar
    1 posts
    Member since:
    Nov 2012

    Posted 17 Apr 2014 Link to this post

    I have looked all over.  I would think this would be simple to do.  If I have a listview control inside of a MVC form.  How do I get the items selected in the listview to post back to the controller?
  2. Alexander Popov
    Alexander Popov avatar
    1436 posts

    Posted 21 Apr 2014 Link to this post

    Hi Zong,

    Forms include only input element that have a name attribute. If you wish to include the ListView items I would suggest subscribing to the form's submit event and manually attaching the selected items to the form's body. Here is an example illustrating how this approach could be implemented.

    Alexander Popov

    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.

Back to Top