Both Single And Double-Click Actions On Cell
All:
Is it possible to have a cell scripted to have actions on both single- and double-clicks?Seems like I can't get a double-click event fired off when I use both:
Is it possible to have a cell scripted to have actions on both single- and double-clicks?Seems like I can't get a double-click event fired off when I use both:
obj.onCellClicked = function(event, column, row) {
switch (parseInt(column)) {
case colExp:
myExpRows[row] = ( (myExpRows[row] == 1) ? 0 : 1);
var visArray = toggleExpandCollapse();
if (visArray.length > 0) {
obj.setRowCount(visArray.length);
obj.setRowIndices(visArray);
}
break
case colAccount:
popUpVndActNb( column, row );
break;
case colVendor:
popUpVendorName( column, row );
break;
case colContract:
popUpVndCntNb( column, row );
break;
case colSched:
popUpSchedule( column, row );
break;
}
};
obj.onCellDoubleClicked = function(event, column, row) {
switch (parseInt(column)) {
case colVendor:
window.open("displayVendor.asp?PID=" + obj.getCellValue( colVID, row ), "Vendor");
break;
case colContract:
window.open("viewVendorContractDetails.asp?VndCntID=" & cntid & "&PID=" + obj.getCellValue( colVID, row ) );
break;
}
};
Paul Tiseo
December 14,