This is a migrated thread and some comments may be shown as answers.

Injecting one more style attribute into GridBoundColumn

1 Answer 500 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deepak Vasudevan
Top achievements
Rank 2
Deepak Vasudevan asked on 23 Nov 2011, 04:49 PM
I need to inject one more attribute text-align:right into a particular gridboundcolumn. It is already getting page inherited styles. .Itemstyle.Horizontalalign does not have any effect but when I inject text-align:right into the same it works (Verified as in Firebug).

Can you guide me how to inject this attribute to already existing style tag of gridboundcolumn?

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 23 Nov 2011, 05:58 PM
Hello,

<telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name">
                   <ItemStyle CssClass="textrightalign" />
                   </telerik:GridBoundColumn>
   
<style type="text/css">
       .textrightalign
       {
           text-align:right ;
           /* or
           text-align:right !important;
           */
       }
   </style>


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Deepak Vasudevan
Top achievements
Rank 2
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or