This question is locked. New answers and comments are not allowed.
Hi.
A while back, I raised a support ticket (http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=479807) for the MVC extensions grid, asking how to right-align grid columns. Telerik's answer was to manipulate the column's HtmlAttributes, HeaderHtmlAttributes and FooterHtmlAtributes, to give each a class that would be styled, under CSS, to align appropriately (see below).
var htmlAttributes = new {
@class =alignment == ColumnAlignment.Left ? "la" : "ra"
};
var result =
columns.Bound("MemberName").Title("Title")
.HtmlAttributes(htmlAttributes).HeaderHtmlAttributes(htmlAttributes).FooterHtmlAttributes(htmlAttributes);
I am now trying to port some code across to the new Kendo UI for ASP.NET MVC (Q2 2012 BETA) and the first thing I noticed is that the HtmlAttributes properties appear to have gone. How am I to align my columns under Kendo?
Thanks
A while back, I raised a support ticket (http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=479807) for the MVC extensions grid, asking how to right-align grid columns. Telerik's answer was to manipulate the column's HtmlAttributes, HeaderHtmlAttributes and FooterHtmlAtributes, to give each a class that would be styled, under CSS, to align appropriately (see below).
var htmlAttributes = new {
@class =alignment == ColumnAlignment.Left ? "la" : "ra"
};
var result =
columns.Bound("MemberName").Title("Title")
.HtmlAttributes(htmlAttributes).HeaderHtmlAttributes(htmlAttributes).FooterHtmlAttributes(htmlAttributes);
I am now trying to port some code across to the new Kendo UI for ASP.NET MVC (Q2 2012 BETA) and the first thing I noticed is that the HtmlAttributes properties appear to have gone. How am I to align my columns under Kendo?
Thanks