Unplanned
Last Updated: 07 May 2014 12:02 by ADMIN
ADMIN
Todd Ropog
Created on: 05 Nov 2013 21:58
Type: Bug Report
0
Support Multiple Selection with RadListBox
Test Studio supports selecting multiple items in a standard HTML select element with the multiple attribute, like the one here: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select_multiple

However, it does not support this with the RadListBox: http://demos.telerik.com/aspnet-ajax/listbox/examples/overview/defaultcs.aspx

It would be nice if multiple selection also worked with the RadListBox.
5 comments
ADMIN
Iliyan Panchev
Posted on: 07 May 2014 12:01
Hi, do you still have this problem?
ADMIN
Todd Ropog
Posted on: 26 Nov 2013 18:49
There may be an issue with the demo site. If you uncheck "Allow multiple selection" while multiple items are selected, it doesn't actually turn off multiple selection, which was causing part of my confusion. 

I still think there may be an issue with the way Test Studio is working. It doesn't seem to recognize when the control key is held. I'm now having the opposite problem, in that when "Allow multiple selection" is on and I *don't* hold the control key, it still does a multiple selection. It does not do if I do this manually. Maybe this is the RadListBox's fault, I'm not sure.

I've attached a test project that will hopefully illustrate the issue better.
ADMIN
Todd Ropog
Posted on: 26 Nov 2013 16:25
You are right, it can select multiple items, but I don't understand why it doesn't work like the standard HTML control, i.e. using a SelectedItems property. As a user, I can select multiple items by holding down the control key, without even checking the "Allow multiple selection" box. This works on the standard listbox, but not on the RadListBox. With the RadListBox, Test Studio doesn't seem to recognize that I'm holding the control key.

I can get the multiselect to work if I check the "Allow multiple selection" box and put a 5 second execution delay after the check, anything less than that and it's inconsistent. But if I'm using the RadListBox in an application and I don't have something like the "Allow multiple selection" checkbox, because my users just use the control key to do select multiples, how would I get Test Studio to work with  that?

ADMIN
Todd Ropog
Posted on: 26 Nov 2013 15:25
I don't think it does, or at least I can't get it to work. In the RadListBox example, I checked the box for "Allow multiple selection" and when recording I select multiple items in the list. Test Studio records each selection as a separate step, as opposed to the w3schools example, in which all selections are recorded as one step in Test Studio. 

If you can get this to work with the sample above, can you please explain how you did it?

Thanks 
Elena
Posted on: 26 Nov 2013 10:07
Actually it is supported by RadListBox, but the control should be configured to allow multiple item selection (ListBoxSelectionMode.Multiple should ne set to the control).
TestStudio will record separately "select item x" step for every selected item. The overall result will be selection of all the items.