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

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

3 Answers 28 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mike Taylor
Top achievements
Rank 1
Mike Taylor asked on 21 Feb 2013, 04:04 PM

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

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 26 Feb 2013, 08:50 AM
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.
0
Mike Taylor
Top achievements
Rank 1
answered on 26 Feb 2013, 10:59 AM
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.
0
Boyan Dimitrov
Telerik team
answered on 01 Mar 2013, 07:58 AM
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.
Tags
ComboBox
Asked by
Mike Taylor
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Mike Taylor
Top achievements
Rank 1
Share this question
or