Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Atanas Koev on Oct 22, 2008 09:27
open dhtmlx forum
DHtmlXGrid math cells serialization

Hello,

I’m using DHtmlXGrid v.2.0 build 81009 with math cells. During serialization of a math cell the calculated value is serialized. By using grid._mathSerialization ( or directly grid. _agetm = “getMathValue” or “getMath”)it’s possible to specify which value should be serialized for the math cells(the calculated value or the formula) . I couldn’t make that work.

I found that the setValue method of the eXcell_math stores the formula into cell.original, but getMath and getMathValue methods (which are supposed to return the formla) use the cell._val (if _val has a value they return it). So the formula is stored in one place but the methods try to return it from another place.

Am I missing something? Is there a way to serialize math cells with formulas (not with calculated values)?

Thanks in advance,

Atanas Koev
Answer posted by Support on Oct 22, 2008 09:54
>>Am I missing something? Is there a way to serialize math cells with formulas (not with calculated values)?
Problem confirmed and fixed, please contact us directly if you need a fixed version of file ASAP. ( or just change _val with original in getMathValue ) 
( the regression caused by update in math in dhtmlxgrid 1.6 and later, serialization of math is pretty rare functionality , so it sliped through our testing somehow )