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

clientSelectedindexchanged fires incorrectly

3 Answers 52 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gopakumar
Top achievements
Rank 1
Gopakumar asked on 10 Jul 2012, 09:55 AM
Hy,

I have a radcombobox in my page.I am calling its OnClientSelectedIndexChanged.I am trying to format the combobx text here.After setting the text my value field becomes empty.Also the event fires again on clicking anywhere outside the control.I am using loadondemand and autopostback is false.

Help me.

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 11 Jul 2012, 09:21 AM
Hello Gopakumar,

Could you please provide us a runnable sample, which demonstrates the issue to examine it locally?

Greetings,
Nencho
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
moegal
Top achievements
Rank 1
answered on 12 Jul 2013, 12:35 PM
I am seeing something similar here.

I am filling another control (listbox) client side on combobox SelectedIndexChanged

After I select the combobox the second time the SelectedIndexChanged fires correctly and then when I click anywhere on the page it fire again?

It seems to be filling the listbox with my previous values as if the 2nd time the selected item in the combobox is the ooriginally selected value and not the new value.

What did you do to resolve this?

SOLVED: (For me at least) The combobox item values were all the same.  I made them unique and all is fine now.
0
Nencho
Telerik team
answered on 17 Jul 2013, 08:24 AM
Hello Marty,

You have implemented the correct approach. There should not be any Items that have identical values. On blur or postback the RadComboBox searches for the first Item with the selected value and selects it. This is described in this documentation article.

Regards,
Nencho
Telerik
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 the blog feed now.
Tags
ComboBox
Asked by
Gopakumar
Top achievements
Rank 1
Answers by
Nencho
Telerik team
moegal
Top achievements
Rank 1
Share this question
or