0
これは私のcshtmlファイルでテーブルを設定する方法です。テーブル本体はforeachループから生成されます。ここでjQuery.TablesorterがRazorで生成されたテーブルで動作していないようです
<table class="tablesorter" id="epicorOrderTable">
<thead>
<tr>
<th>Submitted Date</th>
<th>Order Number</th>
<th>Line</th>
<th class="spider-column" data-spider-column="am">AM</th>
<th class="spider-column" data-spider-column="customer">Customer</th>
<th class="spider-column" data-spider-column="part">Part</th>
<th>Price Per LB</th>
<th>Cost Per LB</th>
<th>Quantity</th>
<th class="spider-column" data-spider-column="need-by">Need By</th>
<th>Market Price Contingent</th>
<th>Reviewed</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Items)
{
@Html.Partial("order") // rest of code omitted
}
</tbody>
</table>
は、Chromeの開発ツールに見られるようなテーブルがすべて生成される方法です。
を私も中に行くと関数を呼び出す再することができていると私はすべてのエラーを取得していないようです。また、ページが最初にロードされたときにエラーが発生することはありません。
私もチェックして、ソースファイルが正しくロードされています。私はTHEADとTBODYを使用しています。これがうまくいかない理由はないと思う。