Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Aug 06, 2008 11:18
open dhtmlx forum
DHTMLX Grid : Change the color of the cell dynamically through script

Hi,
Can I change the color of the cell dynamically through script ???
Basically I want to change the color of the cell thru the option present in right click context menu.
Answer posted by Support on Aug 07, 2008 01:22
You can set the color of cell by
         grid.setCellTextStyle(id,index,style_string);
         grid.setCellTextStyle(1,1,"background-color:red;");

http://dhtmlx.com/docs/products/dhtmlxGrid/samples/context_menu/pro_context_menu.html?un=1218098534000