I am trying to capture the key pressed in a RadComboBox and determine if it is upper or lower case. I used the following code just to see what I was getting back:
I have this in there so I can put a stop on Stop=1 and mouse over and look at the value of TextIn. When I do this and run it, if I type a letter in, I will use the letter "g" as an example, the value of keyCode is the ascii value for the uppercase letter regardless of which is typed. So if I type in a "g", or a "G" either way the keyCode value is 71. what am I doing wrong? I have removed all styles though I have the Filter="StartsWith". Not sure if that could have anything to do with it or not, but if it does, I have no idea why. Any thoughts on why this is happening?
Here is my code where I setup the control just in case it helps:
| function ddAgents_KeyPress(sender, eventArgs) { |
| var TextIn = eventArgs.get_domEvent().keyCode; |
| var stop=1; |
| } |
Here is my code where I setup the control just in case it helps:
| <telerik:RadComboBox ID="ddAgents" Runat="server" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="ddAgents_SelectedIndexChanged" Filter="StartsWith" OnClientKeyPressing="ddAgents_KeyPress"> |