When using dtInPlaceEdit with nested header, inline editor didn't
appear when I clicked a cell. I have fixed it with replace this codes
in js/widgets/dtInPlaceEdit.js:
for(var i = 0 ; i < columndefs.length ; i++) {
var columnDef = columndefs[i];
if( YAHOO.lang.isUndefined(columnDef.editor) &&
!!fieldsByKey[columnDef.key] ) {
columnDef.editor = new
inputEx.widget.CellEditor(fieldsByKey[columnDef.key]);
}
}
with:
for(var i = 0 ; i < columndefs.length ; i++) {
var columnDef = columndefs[i];
if(YAHOO.lang.isArray(columnDef.children)){
// fixed bug on nested header
var children = columnDef.children;
for(var j = 0 ; j < children.length ; j++) {
var child = children[j];
if( YAHOO.lang.isUndefined(child.editor) && !!fieldsByKey[child.key] ) {
child.editor = new inputEx.widget.CellEditor(fieldsByKey[child.key]);
}
}
}else if( YAHOO.lang.isUndefined(columnDef.editor) &&
!!fieldsByKey[columnDef.key] ) {
columnDef.editor = new
inputEx.widget.CellEditor(fieldsByKey[columnDef.key]);
}
}
hope, this is useful.
-aris