Need a Callback for a Relationships Grid Cell Event
Copy
You want to call a client-side Method when the Relationships Grid cell is selected to blur the cell and prevent editing the cell value.
Technique
Add the Event relationship to a Property as the callback for the OnEditCell event.
The Method gets five arguments: relationshipID, relatedID, propertyName, colNumber, gridApplet
The propertyName is the name of the Property for the cell column selected, and colNumber is the column position number in the grid.
Simple return false and this blurs the grid cell.
JavaScript
// Get the current value of the cell
var cellValue = gridApplet.GetCellValue(relationshipID,colNumber);
// If the cell already has a value, disallow editing
if (cellValue !== "") {
return false;
}