Hi,
I have found that if a user types the Home or End keys in the "text box" portion of the WebDropDown control (in order to see text that is hidden, for instance) this triggers the SelectionChanged Client event, but the selection has not changed, and the corresponding server event is not fired. I worked around this by having the event check for these keys, as in the following code:
function EmployeeNameWebDropDown_SelectionChanged(sender, eventArgs)
{
///<summary>
///
///</summary>
///<param name="sender" type="Infragistics.Web.UI.WebDropDown"></param>
///<param name="eventArgs" type="Infragistics.Web.UI.DropDownSelectionEventArgs"></param>
var event = eventArgs.get_browserEvent();
var keyCode = event.keyCode;
if (keyCode == 35 || keyCode == 36)
alert('I am under no illusions that the selection was changed.');
else
alert('I think the selection was changed!');
}
Does anyone know if this will be fixed, or are there other key codes I should watch for, or am I missing something?
Thank you,
Ross
Hi rbailey003,
I've been able to reproduce this and I've done some testing with it. I've not been able to find any settings other than checking for the key input as you are doing. Due to this, I've requested for this to be submitted as a development issue for the developers to look into and offer their opinions.
I will update you on the status of this request sometime on Monday.
If you have any other questions or concerns with this matter, please let me know and I'll be glad to help you.
Thank you, I look forward to hearing more.
I have created a support case for you with an ID of CAS-90869-BMNYKQ. This matter has been determined to be a development issue and has been logged in our tracking system with ID: 111210.
I will leave this case open and update you with any new information. You can view the status of the development issue connected to this case by going to the “My IG” tab on our website, hovering on the "My Support Activity" dropdown and selecting the "Development Issues" tab.
Please let me know if you have any questions.
The development team has suggested that you use the SelectionChanging event to check for the input keyCodes as you are doing in SelectionChanged. In the SelectionChanging event, you can cancel the SelectionChanged from firing.
You can do this by calling "eventArgs.set_cancel(true);" if the Home or End keys have been pressed. This will prevent the SelectionChanged event from firing. Most browsers should be fine with checking for keyCodes 35/36 for End/Home.
Please see the following documentation for more info on the DropDownSelectionEventArgs:http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebDropDown~Infragistics.Web.UI.DropDownSelectionEventArgs_members.html
Please let me know if you need further assistance with this.