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

selectedvalue sometimes empty with automaticloadondemand

5 Answers 86 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
EJ
Top achievements
Rank 1
EJ asked on 11 Jun 2010, 12:19 PM
i have a combobox that is using automaticalloadondemand. sometimes the value of selectedvalue is present and sometimes it is absent - there does not seem to be a rhyme or reason to it - but when it is absent the text value has what is in the combobox but any of the "Selected" values such as selectedindex and selectedvalue act like nothing is selected. is this a bug? if or if it is not a bug how do I work around this? I have many comboboxes with this on a page and need to only load them if the user clicks in them but I want to reliably get the value.

I am using the latest 2010 version of telerik with the combobox within an updatepanel inside a user control which is loaded on a page that has a masterpage

<telerik:RadComboBox ID="MyRadComboBox" runat="server" Width="200px" Height="100px" 
                MarkFirstMatch="True" DataSourceID="MyObjectDataSource" EnableAutomaticLoadOnDemand="true" 
                EmptyMessage="Select Something If You Want To" DataTextField="name" DataValueField="id"
            </telerik:RadComboBox> 

5 Answers, 1 is accepted

Sort by
0
Kyle Butler
Top achievements
Rank 2
answered on 11 Jun 2010, 07:41 PM
I may be having the same issue, except i'm not using load on demand. Stricly databinding the combobox and then trying to get the selectedValue, or value of whatever is in the combobox. The functionality USED to work with the 2007 RadComboBox, now with this new control, it keep having nothing returned after databinding. I've looked everywhere for support, help, backwards compatibility for this issue, but nothing is available. It seems like altho i'm not using any load on demand features at all OR any ajax with this combobox, the control is recieving my data well after the server-side does the databinding.
0
Kyle Butler
Top achievements
Rank 2
answered on 11 Jun 2010, 07:52 PM
Try removing MarkFirstMatch or set it to false. I believe the control has a bug in it. I hope Telerik informs us when a fix is available.
0
Simon
Telerik team
answered on 14 Jun 2010, 05:01 PM
Hi Kyle Butler,

Once we gather enough information about the issue and we resolve it I will write in this forum thread to let you know.

Best wishes,
Simon
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.
0
Sheryl
Top achievements
Rank 1
answered on 03 Aug 2010, 04:40 PM
Hey guys, I've seen this happen in this scenario.

I've got a combo box tied to a SQL datasource, a label and a button on my form.  No Ajax set up on the form.
I have MarkFirstMatch set to True for the combo box.
The only code-behind is a Click event for the button, which shows the selected value of the combo box in the label.
If I select an item and click the button, the label shows what I'm expecting - the corresponding selected value.
If I then open the combo box BUT don't select anything - like click somewhere outside the combo box - and click the button, the label shows nothing.  The combo box still displays my previously selected text.

If I set MarkFirstMatch to False, and follow the same steps, I get my selected value after both button clicks.

Just thought I'd add my .02.

Sheryl
0
Simon
Telerik team
answered on 05 Aug 2010, 02:51 PM
Hi Sheryl,

Thank you for your input.

I tried reproducing this as you described without success as you can see in the attached page.

Please let me know if I am missing something.

Sincerely yours,
Simon
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
Tags
ComboBox
Asked by
EJ
Top achievements
Rank 1
Answers by
Kyle Butler
Top achievements
Rank 2
Simon
Telerik team
Sheryl
Top achievements
Rank 1
Share this question
or