Injecting one more style attribute into GridBoundColumn

2 posts, 0 answers
  1. Deepak Vasudevan
    Deepak Vasudevan avatar
    82 posts
    Member since:
    May 2010

    Posted 23 Nov 2011 Link to this post

    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?
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 23 Nov 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top