Hi Team,
I have done upgrade API 4.0.3 -> 5.0.0
But after upgrade, the rowDblClick: function( event, ui ) do NOT work correctly.
I will show my sample code as follows.
My sample code works correctly with API 4.0.2 and 4.0.3.
Please advise to solve this problem.
Regards,
Koichi
[Sample Code]
var obj = {
height: 600,
columnTemplate: {
render: function(ui){
if( !ui.rowData.pq_gtitle && ui.colIndx < this.option('groupModel.dataIndx').length ){
return "<p style='text-indent:22px;'>"+ui.cellData+"</p>";
}
}
},
colModel: colM,
groupModel: groupM,
dataModel: dataM,
sortModel: {
single: false,
sorter: [{ dataIndx: 'pl', dir: 'up' }, { dataIndx: 'category', dir: 'up' }, { dataIndx: 'model', dir: 'up'}, { dataIndx: 'revision', dir: 'down'}],
space: true,
multiKey: null
},
scrollModel: { autoFit: true },
numberCell: { show: false, resizable: true, title: "#" },
filterModel: { mode: 'OR', on: true, header: false, type: "local" },
selectionModel: { type: '', mode: 'single'},
showTitle: false,
resizable: true,
virtualX: true,
virtualY: true,
hwrap: false,
wrap: false,
columnBorders: false,
editable: false,
hoverMode: "row",
};
var $grid = $("#PQ_Grid").pqGrid(obj);
$( "#PQ_Grid" ).pqGrid({
rowDblClick: function( event, ui ) {
var url = ui.rowData['link'];
if ( url.substring(0,4) == "http" ) {
window.open(url);
}
}
});