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

SelectedIndexChanged not firing when selection changed with the keyboard

2 Answers 261 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 11 Aug 2014, 03:47 PM
I have seen a couple of postings that seem to be related to this issue, but with no definitive answer.

I have a RadComboBox (in ASP.NET) with runat=server and AutoPostBack=true.  I have a handler for OnSelectedIndexChanged.  

The handler fires when the user selects an item with the mouse.  The handler doesn't fire when the focus is on the control and the user changes the selection using the keyboard (arrow up/down).  

The handler will execute in this case when the control loses focus, but that's not the desired behavior.  We have sections of the page that will be shown/hidden based on the user's selection, so the user expects those changes to happen as their selection changes.

What's the official position on how to handle this? 

My version of Telerik.Web.UI.dll is 2013.1.417.35.

Thanks,

David Cater

2 Answers, 1 is accepted

Sort by
0
sandeep
Top achievements
Rank 1
answered on 11 Aug 2014, 07:33 PM
In my view here when you are using your keyboard to select an item,we use arrow keys to search for an item,so the event doesn't get fired. If you press enter on any item, then only the item gets selected and event gets fired. 
0
Shinu
Top achievements
Rank 2
answered on 12 Aug 2014, 05:24 AM
Hi David,

The default behavior of RadComboBox is OnSelectedIndexChanged  event will fire if  selection is happened using keyboard also. Please have a look into this online demo and try to replicate the issue for further help.

Thanks,
Shinu.
Tags
ComboBox
Asked by
David
Top achievements
Rank 1
Answers by
sandeep
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or