updateFromXML - new rows

Hello!

I am using Dhtmlx PRO version 2.5.

I need to insert via loadXML to an existing grid new rows from the server.
I am trying to use updateFromXML method in order to add this new rows.
The problem is that this new rows are not actually inserted on the DB, this is why I need to insert them to the grid as “inserted” (new bold rows) in order to process them afterwards with the dataprocessor.

Is there a way to do this?

On the other hand, if this is possible, is there a way to insert them in a particular order?

Thanks in advance

To insert new rows with updateFromXML() method you should set 2nd parameter to true:

mygrid.updateFromXML(“grid_updated.xml”,true);

If rows are not marked inserted, you can do that manually with setUpdated() method of dataProcessor:

dp.setUpdated(rowId,true,“inserted”)