Pager Render Issue

Jul 1, 2013 at 10:36 PM
Hi Bukharin,

Many thanks for the Excellent Grid. I am trying to use the grid. It rendering very well, but there is small issue while displaying pagination links. The pagination links are coming in an unorderlist format. How can I make to display like a box where every box has page Number in it please?

Thank you
Hari
Coordinator
Jul 2, 2013 at 4:08 AM
Hi thanks,

Sorry I don't understand what you mean under "unorderlist format"? Could you explain it?

Pager rendering template is located in _GridPager.cshtml file.
Jul 2, 2013 at 7:57 AM
Thanks for Quick reply. The paging numbers are coming as
  • 1
  • 2
  • 3
  • 4
  • Next
How can make them look like, the one in demo

| 1 | 2 | 3 | 4 | Next |.

This is my cshtml
@model IEnumerable<DataAccess.Models.CustomerViewModel>
@using GridMvc.Html
@Html.Grid(Model).Columns(columns =>
                        {
                           
                            columns.Add(m => m.CustomerName).Titled(" Name ").Sortable(true).SortInitialDirection(GridMvc.Sorting.GridSortDirection.Ascending);
                            columns.Add(m => m.Address).Titled("Address").Sortable(true);
                            columns.Add(m => m.ContactName).Titled("Contact Name").Sortable(true).Filters.ToString();
                            columns.Add(m => m.Email).Titled("Email Address").Sortable(true).Filters.ToString();
                            columns.Add(m => m.ReferenceNumber).Titled("Reference Number").Sortable(true).Filters.ToString();
                            columns.Add(m => m.ModifiedOn).Titled("Modified On").Filters.ToString();
                        }).WithPaging(4).Filterable(true)
Coordinator
Jul 2, 2013 at 8:44 AM
You need to reference bootstrap styles (http://twitter.github.io/bootstrap/) and gridmvc styles (gridmvc.css) on your page