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

Get selected listbox items

1 Answer 965 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 18 Jul 2018, 06:05 PM

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

 

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 20 Jul 2018, 09:15 AM
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.
Tags
ListBox
Asked by
Dave
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or