Serialization for dhtmlxTreeGrid gives you actual state of the content in xml format. Math formulas can be serialized as formulas or as values.