Forum Discussion
michelle
8 years agoCreator II
Hi
I setting your method in Grids Method, but my method can not trigger double click event.
How to trigger on double click event.
Method Code:
var virtualGridNode = document.createDocumentFragment();
clientControlsFactory.createControl("Aras.Client.Controls.Public.GridContainer", connectNode: virtualGridNode, function(control) {
grid = gridApplet = control;
clientControlsFactory.on(grid, {
"gridDoubleClick": onDoubleClick(0)
});
});
function onDoubleClick(row) {
// If the line below does not return the ID you want,
// you should be able to find it in the 'row' argument passed in to this function
var selectedId = grid.getSelectedId();
if (!selectedId) {
return;
}
// The first argument of this function will be the name of the ItemType you are trying to open. In this case, 'Identity'.
aras.uiShowItem('Identity', selectedId);
return true;
}