わかりましたので、行の開始と行の終了をオーバーライドしようとして MVCContrib グリッドを使用しています。宣伝どおりに機能していません。ばかげたことをしているのは私だとかなり確信しています。
これは私の MVC2.0 ビューからの抜粋です。
<div id="chargestable">
<br />
<% With Html.Grid(Model.InvoiceListingInformation)
.Columns(Function(column)
column.For(Function(setColumns) setColumns.InvoiceNumber)
column.For(Function(setColumns) setColumns.InvoiceDate)
column.For(Function(setColumns) setColumns.ExclGST)
column.For(Function(setColumns) setColumns.InclGST)
End Function)
.RowStart(Function(pRowStart) "Some extra text here <tr>")
.RowEnd(Function(pRowEnd) "</tr>")
.Render()
End With
%>
</div>
これは結果の html です...非常に奇妙です:
<div id="chargestable">
<br>
Some extra text here text/Some extra text here Some extra text here text/Some extra text here Some extra text here text/Some extra text here Some extra text here text/Some extra text here Some extra text here text/Some extra text here Some extra text here text/Some extra text here
<table class="grid">
<thead>
<tr><th>Invoice Number</th><th>Invoice Date</th><th>Excl G S T</th><th>Incl G S T</th></tr>
</thead>
<tbody>
<tr><td>x</td><td>13/12/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
<tr><td>y</td><td>15/11/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
<tr><td>z</td><td>13/10/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
<tr><td>a</td><td>13/09/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
<tr><td>b</td><td>13/08/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
<tr><td>c</td><td>12/07/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
<tr><td>d</td><td>13/06/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
<tr><td>e</td><td>13/05/2009 12:00:00 AM</td><td>amnt</td><td>amnt</td></tr>
</tbody>
</table>
</div>
私が行の開始関数と行の終了関数に入れたものは、グリッドの上に完全にレンダリングされています。なに?私はこれについて数時間頭を悩ませてきました。誰かが私が間違ったことをしたことを見ることができますか?
(PS別のhtml要素で行をラップする必要があるため、属性を使用することはできません)
よろしく、ジェームズ