3.2.0

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)?
romald
March 29,
Hello!


I can't use obj.setAction("keyup",printrowdata) too....

What do I have to do to work keypress, keydown or keyup?

Thanks

Szacsa
November 6,
Hi romald

I create grid in master-detail page and want to capture event when user use keyboard up, down in master grid and get some data from the select row send to my query(detail grid).

This snippet may be can help you.
var myFunction = function(){
  var mRowIndex = this.getProperty("selection/values");
  //alert(mRowIndex);
  parent.frames(1).location = parent.frames(1).location.pathname + '?v=' + this.getProperty("data/text", mRowIndex, 1);
};
obj.setAction("selectionChanged", myFunction);


love this grid.
Thammapat (Thai)
November 7,
Hello Thammapat!

Cool..........


Thank's your help.


Szacsa
November 20,

This topic is archived.

See also:


Back to support forum