I am using UltraWebGrid in edit mode (version 10.3.20103.2134). I need prevent some characters from keystroke input. Now I am using client side event EditKeyDownHandler to check the keycode but I can not differentiate from the key or shift/key by keycode, For example colon or semicolon.
Need help.
Please help me on the below issue.
In my application we are using UltraWebGrid and it has the following columns.
No, Name, Address, CheckBox1, CheckBox2, CheckBox3.
If users clicks any one of the check box button, rest of the checkbox (on the row) needs to disabled. It works fine and we are using the event AfterCellUpdateHandler. Assume user clicks on the Left Mouse button.
The exceptional case would be user clicking through SpaceBar/Enter button in the disabled checkboxes. I need to restrict them to use spacebar to check in the boxes all over the grid. Please help me on this issue.
Hello Hongguang,Please let me know if you have any further questions about this issue.
Hello Nikifor,
Thank you very much. It works.
Hongguang
Hello Hongguang,Please take a look at the attached sample tested under IE 9 and FF 8. The sample handles key up and key down events. It has a variable which holds if the Shift is pressed but not dismissed and it also checks if the "; / :" button is pressed. Please take a note that different browsers has different Key numbers for this ButtonKey. So you need to check what is the browser version and then you cancel the event if Shift is pressed and ";/:" is pressed. Looking forward to hearing from you about your progress with the issue.
It would not solve my problem. I need detect the key or shift/key to cancel the event. for example I need allow colon but not allow semicolon in a cell. how can I achieve it?
thanks,