Hi
I am using WebDateTimeEditor in my asp.net project and I need to disable Enter Key and Tab key of a ketboard in WebDateTimeEditor . For Enter key I use hideEnterkey="True" and it disable the enter key . So like that I want to disable Tab key also . Can some one please give me a solution for this problem ?
Hello Sujay,
I'm glad I could help.
Please feel free to contact me if you have any other questions.
Hi Nikolay
Thanks a lot for your help in resolving this issue . Above solution worked and resolved an issue .
Hi Sujay,
You can achieve this by canceling thr KeyDown client-side event if the pressed key is Tab, for example:
function WebDateTimeEditor1_KeyDown(sender, eventArgs) { if (eventArgs.get_browserEvent().keyCode == 9) { eventArgs.set_cancel(true); }}
Let me know if this helps.