2 dropdownlist questions & 1 improving suggestion

10 posts, 0 answers
  1. Jari Jämsä
    Jari Jämsä avatar
    10 posts
    Member since:
    Apr 2010

    Posted 28 Apr 2010 Link to this post

    Hi,

    Question 1: In system, where i use WebUi test studio development edition there is dropdownlist (with multiple selection) where might be several (50-1000) items. Dopdown list use scroll and show only 6 items at a time. Some cases i need to select all items for my test. Which is best way to do this? Now i use xxxSelect.MultiSelectByValue() method, but it is very slow, when there is several items (more than 25).

    Question 2: I also need something support, how to remove selection in dropdown list. I did try to set htmloption selected to false, but some reason it is still true after that. Now i use first xxxSelect.SelectByValue() -method (becouse it remove other selections) and after that MultiSelectByValue if there is multiple items. But this is ugly solution...

    Improving suggestion: Is that possible to add somekind of separable title for grouping steps in steps -interface? When there is lot of steps, it is very hard to follow what happening without clearly comment between steps... Now i use Custom annotation for grouping different section in my test but it is also hard to see between steps.

    Best regards, Jari Jämsä

    ...and thanks Cody for fast replay my first question about ' Unhandled exception thrown...' i will test your suggestion later tomorrow.
  2. Missing user
    Missing user avatar

    Posted 28 Apr 2010 Link to this post

    Hello Jari,

    Thanks for the post, I'll check out issue number 1 to see if there is anything else that can be done.

    Issue number 2 sounds familar  as far as it being a know issue. I thought I may have logged a bug for this, but I'll check this out again.

    I'll get back to you with what I find.

    Sincerely,
    Nelson
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Missing user
    Missing user avatar

    Posted 03 May 2010 Link to this post

    Hello again Jari,

    So I checked out Question 2 and it looks like that code is not working as expected, so I'll check for the bug on this.

    Also for Question 1, it looks like there is no way to do a multi select as you are doing currently. I'll log a bug for this and thanks for brining both of these issues up.

    And as far as the slowness issue, do you mean performance wise during test play back or actually writing the code that will choose the items? I tried selecting 50 items and it worked alright for me.

    All the best,
    Nelson Sin
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Jari Jämsä
    Jari Jämsä avatar
    10 posts
    Member since:
    Apr 2010

    Posted 04 May 2010 Link to this post

    Hi Nelson and thanks for your answer.

    For slowness issue, i mean: When i play the test, selection is happening very slow (when i use xxxSelect.MultiSelectByValue() method)  . I think this is maybe  because postbacks in my dropdown.

    Best regards, Jari Jämsä
  5. Missing user
    Missing user avatar

    Posted 04 May 2010 Link to this post

    Hi again Jari,

    Thanks for the extra information. Is a post back happening every time an option is selected? And will the post back happen when an a option is selected and an OnChange event is fired on the control?

    If so, I  check out the actual MultiSelect...() implementation to see if the OnChange event is fired which might be causing the problem.

    Best wishes,
    Nelson
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Jari Jämsä
    Jari Jämsä avatar
    10 posts
    Member since:
    Apr 2010

    Posted 06 May 2010 Link to this post

    Hi Nelson,

    i lookt this closer and it is not make postback. Also OnChange event is not occur because i have to set it separately like this:
    Pages.WwwEnerKeyCom.FrameTopframe.SlbFacilitySelect.MultiSelectByValue(Facilities); 
                Pages.WwwEnerKeyCom.FrameTopframe.SlbFacilitySelect.InvokeEvent(ScriptEventType.OnChange);




    Without separately OnChange MultiSelectByValue wont work. I think this might be also bug in WebAii?

    I also clock (about) time, how long it takes to select 40 items. It takes about 10-12 seconds. So if you have 400 items it takes almous 2 minutes.

    Best regards, Jari Jämsä


  7. Missing user
    Missing user avatar

    Posted 06 May 2010 Link to this post

    Hi again Jari,

    Thanks for the update. I rechecked this scenario with selecting 50 items and  it took only ~1.6 seconds. Could you post back with the multi select html tag implementation (please exluce the values)? Also, are you running this in IE, Firefox or Safari?   

    Regards,
    Nelson
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Missing user
    Missing user avatar

    Posted 10 May 2010 Link to this post

    Hello again Jari,

    Just wanted to check back with on this to see if you are still having the problem. If you can also please reply back with the multiselect drop down implementation, I'd like to try to repro this on this end.

    Greetings,
    Nelson
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  9. Jari Jämsä
    Jari Jämsä avatar
    10 posts
    Member since:
    Apr 2010

    Posted 12 May 2010 Link to this post

    Hi and sorry delay.

    that dropdown what we use is our own custom control and i can`t publish source code. But html code in attachment if it`s help. Anyway, this is not big issue and i also have to test this with other "normal" dropdown...

    <select class="targets" id="slbFacility" language="javascript" onchange="javascript:setTimeout('__doPostBack(\'slbFacility\',\'\')', 0)" multiple="multiple" name="slbFacility" size="7"
        <option value="1231" selected="selected">ID1 Apartment Building / Leilighetsbygg, Oslo                </option> 
        <option value="1214">  Factory 1, Location 1          </option> 
        <option value="1215">  Factory 2, Location 2          </option> 
        <option value="3000">  Factory 3, Location 3          </option> 
        <option value="99992">  Factory 4, Location 4          </option> 
        <option value="18123">  Factory 5, Location 5          </option> 
    </select> 


    Best regards, Jari Jämsä



  10. Missing user
    Missing user avatar

    Posted 12 May 2010 Link to this post

    Hi again Jari,

    Thanks for getting back to me on this, the control you posted looks pretty much similar to what I am testing this on except for the postback.

    So the delay is not happening when you fire the OnChange event on the whole select control, but on the actual selection of items? And I would assume there are several items hidden that need to be scrolled to before being select?

    I'll try looking into this again to see if there is anything else I can find, especially the items needing to be scrolled to with the scroll bar. If you can please continue with your implementation, we will look to support this scenario better in a future version of WebUI.

    Sincerely,
    Nelson
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top