Categories | Question details Back To List | ||
Center column headers and summary line in Grid I have a grid with 4 columns and want them aligned as follows grid.setColAlign("left,center,center,center") This works great, except that the header labels and summary/totals line don't obey this alignment. How I can get everything to align properly? Thanks, Chris Answer posted by dhxSupport on Jul 10, 2009 03:47 To set align for the grid header's cell you can use 3rd parameter of setHeader method: mygrid.setHeader("A,B,C",null,["text-align:right;","text-align:left;","text-align:center"]); Answer posted by Chris Thurrott on Jul 10, 2009 04:15 Thanks for that. How about the summary line? Answer posted by Chris Thurrott on Jul 10, 2009 04:15 Thanks for that. How about the summary line? Answer posted by Chris Thurrott on Jul 10, 2009 04:21 Never mind - I figured it out from your example: grid.attachFooter("Totals,#stat_total,#stat_total,#stat_total",["text-align:left;","text-align:center;","text-align:center","text-align:center"]); Thanks for the help and quick response! |