:: Forum >>

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
Tuesday, March 29, 2005
Hello!


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

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

Thanks

Szacsa
Sunday, November 6, 2005
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)
Monday, November 7, 2005
Hello Thammapat!

Cool..........


Thank's your help.


Szacsa
Sunday, November 20, 2005

This topic is archived.


Back to support forum

Forum search