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

How to fire select index change forcefully on selection of same value

1 Answer 81 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 2
Manish asked on 28 Feb 2012, 08:34 AM
Hi,

I want to fire select index change event on selection of value from combo box but i want to fire that event when i am selecting same value from dropdown. Like i have 4 value in drop down and i select 2 value from drop down than the select index change fires but i want to fire select index change again on selection of 2.


Please reply as soon as possible.


Thanks
Manish
Rumman
Top achievements
Rank 1
commented on 24 Mar 2023, 03:56 PM

Are you able to find solution for this i am having the same problem. In want to fire the selected index change event when the same item is selected again.
Attila Antal
Telerik team
commented on 29 Mar 2023, 11:12 AM

Every item in the ComboBox has an index. When the selection changes, the selected index will be different, and so the ComboBox will trigger the SelectedIndexChanged event.

To trigger the SelectedIndexChanged - server event the AutoPostBack property must be set to True. Otherwise, the ComboBox will not make a postback at all. The OnClientSelectedIndexChanged - client event triggers in all cases.

It is not possible to Trigger the event only for certain Values. The event is triggered every time the selection changes, regardless of the values.

However, you can cancel the selection for certain items. For example, you can prevent users to select a certain item from the list. That can be achieved by canceling the event in the OnClientSelectedIndexChanging - client event, thus preventing the selection change.

 

If the Combo is not working as expected, there might be exceptions on the page which you will need to investigate. Always keep an eye on the Console tab in the Browser's DevTools.

Here are a couple of articles on the topic:

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 01 Mar 2012, 06:38 PM
Hi Manish,

As the name suggests, the SelectedIndexChanged event fires only when the selected index of RadComboBox is changed.
Could you provide some more information on the scenario that you are trying to achieve?

Regards,
Ivana
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
Manish
Top achievements
Rank 2
Answers by
Ivana
Telerik team
Share this question
or