ListBox not holding selections

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    4 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    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.
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    4 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    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.
  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 26 Feb 2013 Link to this post

    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.
Back to Top