Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rolf Fuhrmann on Oct 15, 2008 09:20
open dhtmlx forum
serialize()

Hello,

I format 2 treegrid cells before serialization on float with setValue (). A cell is ‘ro’ and other ‘ed’. The ‘ed’ cell has the Focus, however, it was not edited. On serialize() I get for the ‘ed’ cell the unformatted value, for the ‘ro’ cell the formatted value.

If the ‘ed’ cell is edited and loses afterwards the Focus I also get in this cell the desired result with setValue () on serialize()..

How I can get in both cases on serialize() the formatted value.


Thanks in advance and best regards
Answer posted by Support on Oct 15, 2008 10:03
You need to be sure that grid is not in edit state before calling serialization , it can be done as

grid.editStop(); //stop any edit in progress
var data = grid.serialize(); 
Answer posted by Rolf Fuhrmann on Oct 16, 2008 01:16

Hello,

it works fine.

Now, however, I get after serialization in XML-Script for every cell the defined tree image. See attached file.

Best regards

Rolf


Attachments (1)
SData6.23 Kb
Answer posted by Support on Oct 16, 2008 01:42
Problem confirmed and fixed, fixed build will be available in nearest time. 
As fast solution - fixed version sent by email.