:: Forum >> Version 2 >>

obj.onkeypress possibility

Is it possible to have an onkeypress function in the AW Grid in order to receive the selected row?

What I would like to do is to assign the delete button to my grid -> select a row and press the delete button.

I would like to hear if something like this is possible. Thanks in advance!
RGl
Friday, October 8, 2010
http://www.activewidgets.com/aw.system.control/control-keyboard-events.html

Sample:
obj.onKeyDelete = function(event){
 var 
selectedRow this.getSelectedRows();
 if(
selectedRow==''){alert('please select a row ')}
 else{
alert(selectedRow)}
 }
 
Would need to focus the grid before ( in case you are focusing elements outside it i.e a button) with:
obj.element().focus();
C++
Friday, October 8, 2010
Thanks, this works great! Problem solved
RGl
Friday, October 8, 2010



This topic is archived.

Back to support forum

Forum search