asp.net - Ext.net grid: how to align column content? -


this seems stupid question, can't align column content in ext.net gridpanel ! use :

<ext:column dataindex="category1" header="category" align="left" width="80" /> 

but column header aligned, not content ! thanks

to give different alignments column header , content, should assign columnid attribute ext:column. , then, able give 1 alignment header (by css columnid in class name) , 1 content align attribute.

for example, align header center , content left, code that:

<style type="text/css">    .x-grid3-hd-category1     {       text-align: center;    } </style> <ext:column columnid="category1" dataindex="category1" header="category" align="left" width="80" /> 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -