Categories | Question details Back To List | ||
DHX Grid: Setting style for column Hi there, How to set the style for column just like we set for cell using setCellTextStyle thru XML as well as thur API (in case of new column added dynamically) Answer posted by Support on Nov 20, 2008 02:01 There is no way to set style for column ( you can set it for each cell, but not to all column at once ) Through API it can be done as grid.forEachRow(function(id){ grid.setCellTextStyle(id,ind,style); }); Answer posted by Tejas Shah on Nov 20, 2008 03:09 Hi there, It can be done as: <gridObject>.hdr.rows[1].cells[j].style.border = "solid 1px gray"; Where j = Column Index. Answer posted by Support on Nov 20, 2008 04:51 If you mean the "cells" of header - yes it can be done in such way, or 3rd parameter of setHeader can be used for the same goal |