Get selected listbox items

2 posts, 0 answers
  1. Dave
    Dave avatar
    42 posts
    Member since:
    Jan 2008

    Posted 18 Jul 2018 Link to this post

    I would like to get the selected values of the listbox in the POST method of my controller once the form is submitted but I haven't figured out how (it's always just coming in null). To help me out, how would I get the selected values of the "selected" listbox in the example here:

    https://demos.telerik.com/aspnet-mvc/listbox

    Thanks,

    Dave

     

  2. Attila Antal
    Admin
    Attila Antal avatar
    428 posts

    Posted 20 Jul 2018 Link to this post

    Hi Dave,

    Please take a look at the following Forum thread addressing this scenario: Passing data to controller for 'selected' listbox. You can as well download the sample project directly from: send-items-from-listbox.zip

    Kind regards,
    Attila Antal
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top