Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 14, 2008 14:27
open dhtmlx forum
grid

Can i add a new row to the grid when i click on the F-12 key??
Answer posted by Support on Apr 15, 2008 02:04
You can achieve such functionality by using grid's events

grid.attachEvent("onKeyPress",function(code){
    if (code == SOME ){
          var id = (new Date()).valueOf();
          grid.addRow(id,"",-1);
    }
    else return true;
});


where SOME - key code of necessary key