how to make object of DT_RowData or DT_RowAttr
how to make object of DT_RowData or DT_RowAttr
abid
Posts: 3Questions: 1Answers: 0
$records["data"][] = array('DT_RowId'=>'row_record_id_'.$row['invoice_id'],'DT_RowClass'=>$dublicateClass, 'DT_RowData' => { 'onclick': 'anyFunctionName()'},$value1,$value2,$value3,$value4,$value5,$value6,$value7,$value8);
This discussion has been closed.
Answers
this is example of my code please tell me who i insert DT_RowData or DT_RowAttr in this code
<code> $records["data"][] = array('DT_RowId'=>'row_record_id_'.$row['invoice_id'],'DT_RowClass'=>$dublicateClass, 'DT_RowData' => { 'onclick': 'selectRow('.$row['invoice_id'].')'},$value1,$value2,$value3,$value4,$value5,$value6,$value7,$value8);
</code>
That isn't valid PHP. Is it not giving you an error?
You need to construct an associative array like you have done for the container array.
Allan
i used this and working fine but i changed datatables js file then its becomes fine