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

[Solved] How do I right align a column header?

0 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Young
Top achievements
Rank 1
Young asked on 23 Aug 2012, 05:04 PM
Hello,

I have a Telerik grid column header and I want to right align the text. I have tried the following but for some reason, the sytling isnt applied.

columns.Bound(o => o.price).Width(50)
                                .HtmlAttributes(new {@class = "textright"})
                                .HeaderHtmlAttributes(new { @class = "textright" });

Also, even when I try to apply in-line styling, the text aligns right, but not right the edge of the column.

columns.Bound(o => o.price).Width(50)
                                .HtmlAttributes(new {@class = "textright"})
                                .HeaderHtmlAttributes(new { style = " text-align: right; " });

Please can someone shed some light on what the problem might be? 
I only want to right align the header text for this column and not the rest of the other headers.

Thank you very much.
Tags
Grid
Asked by
Young
Top achievements
Rank 1
Share this question
or