key events to select row
here in activewidgets table ,onclicking the row, i am displaying the selected row content (ie.,displaying the selected row content in alert )using
obj.setAction("click",printrowdata)
and the printrowdata function is
function printRowData(src){
// get index of the selected row
index = src.getProperty("row/index");
// print data using the row index
alert(myData[index]);
}
like this,how can i call 'printrowdata' function for keyup, keydown, keypress events.
why cant we use obj.setAction("keyup",printrowdata)?
obj.setAction("click",printrowdata)
and the printrowdata function is
function printRowData(src){
// get index of the selected row
index = src.getProperty("row/index");
// print data using the row index
alert(myData[index]);
}
like this,how can i call 'printrowdata' function for keyup, keydown, keypress events.
why cant we use obj.setAction("keyup",printrowdata)?
romald
March 29,