I've been using ultraTree since 2005 and for checkboxes implemented the mouse_click event in order to get check boxes to work...
The list of features added since, seems to hint that editing is allowed now, however my attempts to get it workign through the configuration windows have not been successful...
I've placed both a checkbox and a text editor and the cell does change for the text box using the editorControl property on a column (outlook mode). I've changed AllowCellEdit to Full. I've bound to the TextChanged, AfterCheck and CellValueChanged events. However, I have no edit capability in the cells and of course the events never get triggered. The old style code I used for check boxes is included below and works fine, but that trick does not work for text editing of course... So if anyone has an example of text editing in a cell, I would appreciate it...
// *******************************************************************************************
// All of the following code handle the various input events for the tree control, that allows
// users to select and unselect fields and records as well as setting cascade values.
UIElement lastElement = ultraTreeFields.UIElement.LastElementEntered;
lastElement.GetContext(typeof(UltraTreeNodeCell), true) as UltraTreeNodeCell;
SetCheckedCell(cell);
ToggleSelection(cell.Node);
}
if (cell.Value != null && cell.Value is Boolean) {
cell.Value = value;
ObjectChanged();
You might have to set UltraTree.Override.CellClickAction to 'EditCell'
I had it set to CellEdit. When I reset EditorControl to (none) edit started to work... I am using AllowCellEdit = Full... Not sure if that has an effect when I try to assign an editor...
BTW... Is there any CellEdit mode I can use that still allows for the arrow keys to be used to navigate the nodes, allowing for up/down movement and the right/left to be used to expand/collapse nodes? When I change Default to CellEdit I lose the arrow navigate for expanding and collapsing nodes... I also loose the full row select.