ComboBox - WCF Web Service => get_selectedItem() returns NULL

4 posts, 0 answers
  1. Mike Taylor
    Mike Taylor avatar
    27 posts
    Member since:
    Sep 2009

    Posted 21 Feb 2013 Link to this post

    Hello guys,

     

    I am facing a weird issue that I am able to reproduce on you demo page (with Chrome and Firefox).

    Basically sometime the get_selectedItem() method return null while an item has been checked.

     

    Here is the way to reproduce it:

    Go to the WCF load-on-demand demo here:

    http://demos.telerik.com/aspnet-ajax/combobox/examples/loadondemand/wcf/defaultcs.aspx

     

    With your mouse, click on the arrow of the RadCombobox to display to the drop down panel and select for example the third item ‘Ana Trujillo’.

    The drop down panel closes.

    Now in the console of the browser’s developer tool, type:

    $find("ctl00_ContentPlaceHolder1_RadComboBox1").get_selectedItem()

    You can notice the returned value is not null.

     

    Then click again on the arrow to show the drop down panel and after that directly click on ‘Annette Roulet’.

    The drop down closes again.

    Go back to the console et re-evaluate the selected item.

    You can notice the returned value is null whereas an item is graphically selected.

     

    Are you aware of that?

    Do you know a workaround?

     

    Regards

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 26 Feb 2013 Link to this post

    Hello,

    We are not aware of such RadComboBox control behavior with our WCF online demo. Since I am not able to reproduce the described issue, I have uploaded here a video that demonstrates the returned value of the provided expression when user selects an item form the RadComboBox drop down list. Could you please let me know if I am missing something?


    Regards,
    Boyan Dimitrov
    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.
  3. Mike Taylor
    Mike Taylor avatar
    27 posts
    Member since:
    Sep 2009

    Posted 26 Feb 2013 Link to this post

    Hi Boyan, 

    If you had followed step by step my scenario, you would have been able to reproduce the bug.
    In your video it seems you have refreshed the page before selecting the second item.
    The text in the RadCombobox input is ‘Type here …’.

    I uploaded here a short video to demonstrate my scenario working.
    I added a second scenario that fails at the end of the video.

    In fact it seems this issue occurs only for the items in the second half of the last loaded page.
    For example if you set up you ComboBox to return 10 items (like it is in your demo page), if you select item 1, 2, 3, 4 or 5 of the list, get_selectedItem() works and does not return null.
    But if you select item 6, 7, 8 or 9 it fails (I was not able to select item 10 without loading the next page (items 11 to 20)).
    The key point here is to not trigger the loading of the next page.
    If you load it, the items 6, 7, 8, 9 and 10 will work but the items 15, 16, 17, 18 and 19 will fail etc.

    To be sure it is not coming from something weird with my computer, I asked a colleague to test this scenario from his side and he got the same issue.

    Regards.
  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 01 Mar 2013 Link to this post

    Hello,

    I am confirming that I have reproduced the described  issue following the steps provided in that video. I have already logged it as bug in our system for future fixing.

    I would like to thank you for cooperation.

    Regards,
    Boyan Dimitrov
    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