如何在空的 dhtmlxgrid 上添加 onKeyPress?
how to added onKeyPress on empty dhtmlxgrid?
当网格在 DhtmlxGrid
中有行时,onKeyPress()
事件工作正常。但是当 Grid 为空时,事件不会发生。
我的代码是:
grd.attachEvent("onKeyPress", ongrdInsert);
function ongrdInsert(nKeyCode,Ctrl,Shift,Event)
{
if (40 == nKeyCode)
{
alert("ongrdInsert");
}
}
您的问题已确认并已解决。如果您有有效的支持订阅,您可以在 support.dhtmlx.com 开一张票以获得修复。它还将包含在下一个 dhtmlxGrid 版本中。
DhtmlxGrid
中有行时,onKeyPress()
事件工作正常。但是当 Grid 为空时,事件不会发生。
我的代码是:
grd.attachEvent("onKeyPress", ongrdInsert);
function ongrdInsert(nKeyCode,Ctrl,Shift,Event)
{
if (40 == nKeyCode)
{
alert("ongrdInsert");
}
}
您的问题已确认并已解决。如果您有有效的支持订阅,您可以在 support.dhtmlx.com 开一张票以获得修复。它还将包含在下一个 dhtmlxGrid 版本中。