This question is locked. New answers and comments are not allowed.
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.
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.