Hi James,
Having locked columns and header/footer templates should not cause problems with the layout with our latest version. Using the following online demo, setting Width to the columns and enabling scrolling and grouping renders the Grid correctly:
Here is the modified configuration that works correctly on my side:
<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/aspx/Views/Shared/Web.Master" %>
<
asp:Content
ContentPlaceHolderID
=
"MainContent"
runat
=
"server"
>
<%: Html.Kendo().Grid<
Kendo.Mvc.Examples.Models.ProductViewModel
>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.ProductName)
.ClientFooterTemplate("Total Count: #=count#")
.ClientGroupFooterTemplate("Count: #=count#").Width(400).Locked(true);
columns.Bound(p => p.UnitPrice).Format("{0:C}").Width(400);
columns.Bound(p => p.UnitsOnOrder)
.ClientFooterTemplate("Average: #=average#")
.ClientGroupFooterTemplate("Average: #=average#").Width(300);
columns.Bound(p => p.UnitsInStock)
.ClientGroupHeaderTemplate("Units In Stock: #= value # (Count: #= count#)")
.ClientFooterTemplate("Period Total: #= kendo.toString(count, \"n2\")#").Width(300);
})
.Pageable()
.Sortable()
.Groupable(group => group.ShowFooter(true).Enabled(true))
.Scrollable(s => s.Height("400px"))
.DataSource(dataSource => dataSource
.Ajax()
.Aggregates(aggregates =>
{
aggregates.Add(p => p.UnitsInStock).Min().Max().Count();
aggregates.Add(p => p.UnitsOnOrder).Average();
aggregates.Add(p => p.ProductName).Count();
aggregates.Add(p => p.UnitPrice).Sum();
})
.Group(groups => groups.Add(p => p.UnitsInStock))
.Read(read => read.Action("Aggregates_Read", "Grid"))
)
%>
</
asp:Content
>
Can you please try your configuration with our latest version? Additionally, please ensure that there are no JavaScript errors on the page.
Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items