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

OnClientSelectedIndexChanged fires twice

3 Answers 187 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 09 Apr 2010, 07:23 PM
Hi guys,

I am trying to do some logic when a new value is selected from the combobox.

I hooked up a callback function to the OnClientSelectedIndexChanged event. When I select a new element the event fires and when I click anywhere else ( the Combobox will lose focus) the event will fire again.

How can I overcome this?

3 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 14 Apr 2010, 09:38 AM
Hello Joseph,

I tried to reproduce the issue on our side but without success.
Could you please explain in more details your implementation and paste the code here?

Kind regards,
Kalina
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
Vivek Verma
Top achievements
Rank 1
answered on 15 Aug 2010, 10:28 AM
I am facing exactly the same issue this is so frustrating , telerik gives hundreds of features but when you go ahead to implement them  most of them just fail even in the basic scenarious.

I dont know what in this world makes a controls event fire twice but this occurs when the datavaluefield contains duplicate values so in case the last selected value is equal to the current selected value the event fires twice.
 
This is lack of quality testing
0
Kalina
Telerik team
answered on 16 Aug 2010, 09:18 AM

Hi Vivek Verma,

Please note that the values of RadComboBox items have to be unique.
You can find more details about this topic here.

Greetings,
Kalina
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
Joseph
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Vivek Verma
Top achievements
Rank 1
Share this question
or