Hello,
I am Cloning an ultratree by using "SaveAsBinary" method as follows
private
void AddTreeNodes(UltraTree originalUltraTree)
{
OriginalUltraTree = originalUltraTree;
var savedTree = new MemoryStream();
originalUltraTree.SaveAsBinary(savedTree);
byte[] buffer = savedTree.ToArray();
savedTree.Close();
updatableUltraTree.LoadFromBinary(new MemoryStream(buffer));
updatableUltraTree.Override.CellClickAction =
CellClickAction.EditCell;
}
originalUltraTree has editComponent, if i edit in a cell and dont perform tabout,
then click on button , i am calling originalUltraTree.ActiveCell.EditorResolved.ExitEditMode
then calling the above method to clone the ultratree,
Originaltree will be having the right value entered whereas updatableUltraTree will not get
the new value
Kindly do the needful
I am assuming the problem to be that the value of the cell that was in edit mode is not reflected in the cloned grid. This is because it hasn't been udpated; try calling the grid's Update method prior to calling your AddTreeNodes method.
Hello Brian,
Thanks for the reply,
Even after grid's update the new value didnt get reflected in the Cloned grid
{ originalUltraTree.Update();
updatableUltraTree.Override.CellClickAction = CellClickAction.EditCell;
Before calling AddTreeNodes, "originalUltraTree.ActiveCell.EditorResolved.ExitEditMode " has been perfomed.
originalUltraTree.Nodes[1].Nodes[0].Cells[3].Value will be "585" where as updatableUltraTree.Nodes[1].Nodes[0].Cells[3].Value Will be "58"
Please Help