This question is locked. New answers and comments are not allowed.
I have two grids, and I want both to be pageable with the default footer. The first one works fine:
But second one does not show paging info. I am able to set the paging size, and it works, but I never see the footer. This is the code I have for it:
Any ideas why one footer shows up, and the other doesn't?
Thanks,
~S
<%= Html.Telerik().Grid<HRMS.Models.Employee>() .Name("EmployeeResults") .DataBinding(binding => { binding.Ajax().Select("QueryResultsCallback", "Employee", new { searchField = (string)ViewData["searchField"], targetValue = (string)ViewData["targetValue"] }).Enabled(true); }) .Columns(columns => { columns.Bound(m => m.Id).Title("Employee #").Width(100); columns.Bound(m => m.SurName).Title("Last Name").Width(200); columns.Bound(m => m.GivenName).Title("Given Name").Width(200); }) .Selectable() .Pageable() .BindTo(Model.Data) .ClientEvents(events => events.OnRowSelected("onRowSelected")) .HtmlAttributes(new { style = "width:500px; font-size:smaller; margin: 30px;" }) %>But second one does not show paging info. I am able to set the paging size, and it works, but I never see the footer. This is the code I have for it:
<%= Html.Telerik().Grid<HRMS.Models.RateSlip>() .Name("RateSlipGrid2") .DataBinding(binding => { binding.Ajax().Select("RateSlipDetailsPagingCallback", "Employee", new { employeeId = Model.First().Employee.Id }); }) .Columns(c => { c.Bound(m => m.RateSlipId).Hidden(); c.Bound(m => m.EffectiveDate).Title("Effective").Format("{0:dd-MMM-yyy}").Sortable(true).Width(110); //c.Bound(m => m.ReasonPayChange).Title("Reason").Width(110); }) .Selectable() .Pageable() .BindTo(Model) .ClientEvents(events => events.OnRowSelected("onRateSlipSelected")) .HtmlAttributes(new { style = "width:150px; font-size:smaller; margin: 30px;" }) .Footer(true) %>Any ideas why one footer shows up, and the other doesn't?
Thanks,
~S