I posted this question on the kendo forum and was waiting for an answer.
I use the kendo grid to work with ui and paging / sorting until I add a few lines (tr: 2 and tr: 3) in my hell. How can i fix this? is there any way? I do not group only simple lines.
<table>
<thead>
<tr>
<th data-field="firstname">First Name</th>
<th data-field="surname">Surname</th>
<th>Class</th>
<th>Current Age</th>
@foreach (MapDetail geMapDetail in Model.mapDetails)
{
<th id=@geMapDetail.MapDetailID>Growth</th>
}
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
@foreach (MapDetail geMapDetail in Model.mapDetails)
{
<th id="Year-Sem-Term">@geMapDetail.year</th>
}
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
@foreach (MapDetail geMapDetail in Model.mapDetails)
{
<th>@geMapDetail.shortDescription</th>
}
</tr>
</thead>
<tbody></tbody>
<table/>
my jquery script
$("#MapDetails").kendoGrid(
{
sortable: true,
dataSource: {
pageSize: 5
},
pageable:true,
resizable: true,
columns: [{
field: "firstname",
width: 150,
locked: false
}
]
}
);
source
share