Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Ultratree UseAsBinary
posted

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,

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