Hi
I’m not able to restrict alphabets in dhtlxgrid using keypress event in firefox.In
IE it is working.
mygrid.attachEvent(“onKeyPress”,function(key){
if(key==8 || key==46 || key==49 || key==50 || key==51 || key==52 || key==53 || key==54 || key==55 || key==56 || key==57){
return true;
}
else{
return false;
}
})
This is the code i’m using. Can anyone help me in resolving the firefox issue
Unfortunately the issue cannot be reconstructed locally.
Your code works well for us in IE and firefox.
If issue still occurs for you, please, provide withe a demo link or a complete demo, where the issue can be reproduced.
Thanks For reply.
Unfortunately for me it is not working in Firefox 17.0.9 version. Its working perfectly fine in IE8
logun
May 28, 2014, 11:55am
#5
mygrid.attachEvent(“onKeyPress”,function(key,ctrl,shift,e){
if(key==8 || key==46 || key==49 || key==50 || key==51 || key==52 || key==53 || key==54 || key==55 || key==56 || key==57){
return true;
}
else{
e.preventDefault();e.stopPropagation(); e.cancelBubble= !0; return false;
}
})
WORK FOR IE ET FF