Hi
I create Grids and I want get cell value when double click. Add this method but when I double click grid row . No Trigger anything so I can't get cell.
Method:
debugger;
var virtualGridNode = document.createDocumentFragment();
clientControlsFactory.createControl("Aras.Client.Controls.Public.GridContainer", { connectNode: virtualGridNode}, function(control) {
grid = gridApplet = control;
gridReady = true;
clientControlsFactory.on(grid, {
"gridDoubleClick": onDoubleClick,
"gridMenuClick": function(cmdId, rowId, col) {
return onRelationshipPopupMenuClicked(cmdId, rowId, col);
},
"gridKeyPress": onKeyPressed
});
});
function onDoubleClick(rowId) {
if (isEditMode) {
return true;
}
if (computeCorrectControlState("show_item") && showRelatedItemById(rowId)) {
return true;
} else if (computeCorrectControlState("show_relationship")) {
return showRelationshipById(rowId);
}
return false;
}
function onKeyPressed(key) {
var keyCode = key.keyCode;
if (keyCode == 9 && !key.shiftKey) {
if (grid.focus_Experimental.isLastCell()) {
bCreateNew = true;
}
}
}