Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mikkel on Mar 22, 2008 17:05
open dhtmlx forum
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
)
Answer posted by Support on Mar 24, 2008 03:03
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);