ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: soulminato on September 02, 2015, 03:23:46 am
-
Hi, how are you. How I can get the data in a row when I crush the enter key above a row?
-
Sorry for the confusion. your account has been upgraded.
Data in a row can be obtained if you know the index ( rowIndx ) or record ID of the row.
var rowData = $grid.pqGrid("getRowData", { rowIndx: rowIndx } );
If you need rowData inside a row or cell based event, you can directly get it from ui arguments in the callback function.
cellKeyDown: function(evt, ui){
if(evt.keyCode == $.ui.keyCode.ENTER){
alert(ui.rowData);
}
},
http://paramquery.com/pro/api#event-cellKeyDown
-
ownership 'SelectionModel' table is 'row' and not use the 'cell' and there is some method or event that is similar to cellkeydown? for example rowkeydown?
For now I'm using the event rowDblClick, for passing data from one table to another, but i need press ENTER key for passing the data, thanks,
Sorry for my bad english, I speak spanish. :P
-
yes there is rowKeyDown event that can be used when selectionModel.type is 'row'
http://jsfiddle.net/vx2yvLfd/
-
Ahhhh... thanks, That event It's not in the documentation.