3.2.0

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
October 8,
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++
October 8,
Thanks, this works great! Problem solved
RGl
October 8,

This topic is archived.

See also:


Back to support forum