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

ListBox not holding selections

3 Answers 31 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 21 Feb 2013, 07:45 PM
I have a ListBox control on a page which is being fed from the an XML Data Source. I have it setup to allow for multiple selections without using checkboxs. I am able to select the multiple selections using the Ctrl key as I would expect, but after I click my submit button to process the data, none of the selections are there and I cannot figure out why. I have been using these controls for a number of years now and have never run into this problem.

3 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 21 Feb 2013, 08:08 PM
Hi Brian,

What exactly are you pressing as a 'submit button' ? Is it the built in "move left" or "move right" buttons? If not, you may need to familiarize yourself with the client side API to confirm you are using the get functions correctly . Make sure you are using get_selectedItems as opposed to get_selectedItem to make sure you are receiving all selected items at once.

Good luck,
Master Chief
0
Kevin
Top achievements
Rank 1
answered on 21 Feb 2013, 08:12 PM
None of this is happening client side. I have a server side function that is looping through the selected items of the control to then post the information to a Azure Table, but when I view the SelectedItems collection, there is nothing in it.
0
Bozhidar
Telerik team
answered on 26 Feb 2013, 07:49 AM
Hi Brian,

I've tested the described scenario but couldn't reproduce the problem. I've attached tha sample page I used to test this. Could you verify if it works fine on your end. If your setup is different in any way, please specify the exact specifications, so that we can properly set it up on our end in order to reproduce the issue.
 

Regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ListBox
Asked by
Kevin
Top achievements
Rank 1
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Kevin
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or