Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 03, 2008 23:51
open dhtmlx forum
DHX Grid: Why css style and css text is not taken by the cell in XML

Hi there,
I have given css style as well as class to the cell in XML.
But still it doesn't take it fully; why ?

I have written something like this in XML:
sb.append("<cell class=\"readyProcess\" style=\"text-align: center;\"><![CDATA[<a class=\"menuLink_color\" onclick=\""+openFileFunction+"('"+proofObj.getFbookstatusid()+"','"+proofObj.getFBookFileLinkType()+"')\"><img src="+smallIcon+" style=\"behavior: url('"+path+"/images/iepngfix.htc');\"></a>]]></cell>");


Image Link:
http://img372.imageshack.us/my.php?image=cellstylezl6.jpg

Please help !!
Answer posted by Support on Oct 06, 2008 05:50
You can force attribute serialization by using 

grid.xml.cell_attrs=["class","style"];

Beware, that for both attributes, grid will include the same value as it was in original XML, not the actual value of the cell. 
Answer posted by Tejas Shah on Oct 07, 2008 07:07
Hi there,
              I tried it; but its still not working.
              Do u have any alternate way ?
Answer posted by Support on Oct 07, 2008 08:26

Working sample sent by email.