This is a migrated thread and some comments may be shown as answers.

Formatting issues

2 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 10 Jul 2014, 01:39 AM
Hi, 

This is my first time using the grid and I'm having some issues with the formatting. I followed and double checked the setup for MVC4. Here is my razor code:

@(Html.Kendo().Grid((IEnumerable<TS.Models.ConnectionManagement.ConnectionManagementSystemTelerik>)Model)
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(System => System.SystemId);
        columns.Bound(System => System.SystemType);
        columns.Bound(System => System.SiteId);
        columns.Bound(System => System.SiteName);
        columns.Bound(System => System.SiteAddress);
        columns.Bound(System => System.IsSecured);
    })
  .Pageable() // Enable paging
  .Sortable() // Enable sorting
)

If you look at the attached file, the grid functions properly, but it does not look correct. Can you think of anything for me to look for?

Thanks
Alex

2 Answers, 1 is accepted

Sort by
0
Tomas
Top achievements
Rank 1
answered on 10 Jul 2014, 07:13 AM
Have you checked Developer Console - it looks as if you have not included either the stylesheets or js files needed for Kendo.  Hvae you followed all the steps here - http://docs.telerik.com/kendo-ui/getting-started/using-kendo-with/aspnet-mvc/asp-net-mvc-4
0
Alex
Top achievements
Rank 1
answered on 16 Jul 2014, 01:03 AM
The issue was that I did not use the partial layout. 
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Tomas
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or