I have a GridView with a custom rowtemplate, looking like this:
Whenever I open my page and look at the grid, it contains spacing both at the top and bottom of each row, causing the lines that separates the columns to be spaced apart vertically. (See attached image)
Am I doing the template thing wrong or am I missing something?
@(Html.Kendo().Grid(Model.UnitTypes) .Name("Grid") .RowTemplate(@<tr> <td> <div>@item.Name</div> </td> <td> <div>@item.CurrentRun.Operation.WellContract.Location</div> </td> <td> <div>@item.CurrentRun.Operation.WellContract.Name</div> </td> <td> <div>@item.CurrentRun.Id</div> </td> <td> <div>@item.CurrentRun.RunTask</div> </td> <td> <div>@item.Status.StatusText</div> </td> <td> <div>Lamp</div> </td> <td> <div> <div class="progress progress-warning"> <div class="bar" style="width: 50%"> <span class="offset6" style="color: #676767;">@Math.Round(item.CurrentRun.LatestWellLogEntry.Depth.Value, 2)</span> </div> </div> </div> </td> <td> <div>@Math.Round(item.CurrentRun.LatestWellLogEntry.Speed.Value, 2)</div> </td> <td> <div>@Math.Round(item.CurrentRun.LatestWellLogEntry.Tension.Value, 2)</div> </td> <td> <div>@item.CurrentRun.Name</div> </td> <td> <form method="POST" action="~/UnitDetails/Index/@item.Id"> <input type="submit" class="k-button" value="Details" /> </form> </td> </tr> ) .HtmlAttributes(new { style = "height:430px;" }) .Columns(columns => { columns.Bound(p => p.Name).Title("Unit"); columns.Bound(p => p.CurrentRun.Operation.WellContract.Location).Title("Site"); columns.Bound(p => p.CurrentRun.Operation.WellContract.Name).Title("Well"); columns.Bound(p => p.CurrentRun.Id).Title("Run"); columns.Bound(p => p.CurrentRun.RunTask).Title("Task"); columns.Bound(p => p.CurrentRun.Operation.Description).Title("Operation"); columns.Bound(p => p.Status.StatusText).Title("Status"); columns.Bound(p => p.CurrentRun.LatestWellLogEntry.Depth).Title("Depth (m)"); columns.Bound(p => p.CurrentRun.LatestWellLogEntry.Speed).Title("Speed (m/min)"); columns.Bound(p => p.CurrentRun.LatestWellLogEntry.Tension).Title("Weight (kg)"); columns.Bound(p => p.CurrentRun.Name); columns.Command(command => command.Custom("Edit Unit").Action("Index", "UnitDetails")).Width(85); }) .DataSource(dataSource => dataSource.Server().Model(m => m.Id(p => p.Id))) .Pageable() .Scrollable(builder => builder.Height(250)) .Sortable())Am I doing the template thing wrong or am I missing something?
