Hi!
I'm trying to only allow editing on leaf nodes through the following code
The problem is that this is causing the app to hang. Apparently this method is getting called several times when I enter edit mode on a folder node(node with children) via double click or setEditOnFocus(true). When I enter edit mode in a leaf node it hits the method multiple times but doesn't hang as when it is a folder node. Could someone tell me what I am doing wrong or how can I achieve the same requirement??
thanks for your help!
I'm trying to only allow editing on leaf nodes through the following code
Code:
@Override protected boolean canEditCell(int rowNum, int colNum) { Record rec=this.getEditedRecord(rowNum); if(this.getTree().isFolder(Tree.nodeForRecord(ListGridRecord.getOrCreateRef(rec.getJsObj())))) return false; return super.canEditCell(rowNum, colNum); }
thanks for your help!
Comment