Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by n.darques on Mar 18, 2009 04:48
open dhtmlx forum
[dhtmlxDataProcessor] DataProcessor (v2.1) doesn't keep custom row or cell styling on update/insert

Hello guys,

DataProcessor seems to loose custom styling for a grid/treegrid row on update.
It is, needless to say, very annoying.

A quick fix will be more than appreciate.
Thanks.
Answer posted by Support on Mar 18, 2009 10:30
As quick fix, you can block any style related operation of dataprocessor as  

dp.attachEvent("onRowMark",function(){ //dp - instance of dataprocessor 2.1+
       return false;
});

The issue already fixed locally to prevent overriding styles assigned directly from datasource ( cell@style ) , is it enough in your case, or you are using some other method to set cell's styles?

Answer posted by n.darques on Mar 18, 2009 10:41
I'm using setRowStyle and setCellTextStyle method for some events.
Both method doesn't prevent overriding.

Thanks for your quick fick anyway. Will do the trick for now.