この質問は剣道フォーラムにも投稿されています。複数のヘッダー行が存在する場合、剣道グリッドページングは機能しません。
剣道のグリッドを使用して私のUIとページング/並べ替えがうまくいくまで、私は複数の行(tr:2とtr:3)を私の犠牲に追加します。どうすればこの問題を解決できますか?周りに道があるのですか?私は単純な行だけをグループ化しているわけではありません。
<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 [email protected]>Growth</th>
}
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<!--get from mapdetails-->
@foreach (MapDetail geMapDetail in Model.mapDetails)
{
<th id="Year-Sem-Term">@geMapDetail.year</th>
}
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<!--get from mapdetails-->
@foreach (MapDetail geMapDetail in Model.mapDetails)
{
<th>@geMapDetail.shortDescription</th>
}
</tr>
</thead>
<tbody></tbody>
<table/>
私のjqueryのスクリプト
$("#MapDetails").kendoGrid(
{
sortable: true,
dataSource: {
pageSize: 5
},
pageable:true,
resizable: true,
columns: [{
field: "firstname",
width: 150,
locked: false
}
]
}
);
あなたが使っている剣道のバージョンは? jsbinや他のWebツールでこれを再現できますか?あなたがそれを行うことができれば、例のリンクを与えてください。あなたを援助したいと思う人にとっては素晴らしいことです –