TREEGRID.PARSE WITH BEHAVIOR OF UPDATEFROMXML

Hi,

Im facing a problem, as the title say, i need to parse a xml object or string (whatever), but i need to append data to the grid existing data or not.

For example:
xml:

-Row1
–child1
–child2
–child3

when i refresh the new xml would be like this:

-Row1
–child2
–child3
–child4

With updatefromxml i know that child1 would be deleted and child4 would be appended.
But with a xml object i only have the parse function.

Can anyone help me?

thks

Please ,try to use the following solution:

mygrid._refresh_mode=[true,insert_new,del_missed]; mygrid.parse(data)
Note:
insert_new - boolean
del_missed - boolean

Thanks for the reply,

I tried to do this :

#grid#._refresh_mode=[true,true,true];
#grid#.parse(loader.xmlDoc.responseXML);

It should result something like the image uploaded.

But the grid only add the last row:

A9003 - SV-QTDE REAL MAIOR PREVISTO

what do i do now?

Thanks.


Please, provide screenshots of result and expected behavior and the examples of generated xml.