How to save xTree checked states?

Is there a way to save the checked state of the xTree items?



I have tried using the dataprocessor, but it only passes the id and text of the treeItem, not the checked state:



Array

(

[tr_id] => f_2

[tr_pid] => m_3

[tr_order] => 1

[tr_text] => QuickList1

)

It is true, dataprocessor not sends checked state of item, to add such data code need to be updated in next way

Locate next string in dhtmlxdataprocessor.js ( line 393 )
    str+="&tr_pid="+this.escape(z2.id);

and replace it with

    str+="&tr_pid="+this.escape(z2.id);
    str+="&tr_check="+this.escape(z2.checkstate);