Hi,
Is it possible to Hide/Show a cell or disable/enable a cell on relationship grid?
I added two properties to my Relationship Itemtype. A checkbox property and an item property. While adding a relationship item I want to disable/enable item cell based on checkbox cell's check. On check the cell should be disabled/hidden.
I added a Property Event with OnEditFinish for 'checkbox' property. Code:
var no_item = getRelationshipProperty(relationshipID, propertyName);
var Cell = gridApplet.cells(relationshipID,2); //-- I am thinking that column numbers starts from 0, it is my 3rd column
if(no_item==="1")
{
if(Cell)
{
//alert("Cell found");
Cell.setEditable(false);
}
}
else{
if(Cell)
{
//alert("Cell found");
Cell.setEditable(true);
}
}
This not making the field not-editable.
Is this the correct way of disabling the cell? Please help me to solve this.
Thank you
↧
Disable/Enable a cell on Relationship Grid based on a checkbox's check.
↧