How can I sort/filter a table using asp.net? I'm not sure exactly how to go about it, do I have to use jquery. Researching but i'm not seeing exactly how to handle this.
<table>
<tr>
<th class="col-lg-3 tablehead">Expense Account</th>
<th class="col-lg-3 tablehead">Description</th>
<th class="col-lg-3 tablehead">Requisition Number</th>
<th class="col-lg-3 tablehead">Item Number</th>
</tr>
@for (int i = 0; i < Model.Count; i++)
{
<tr>
<td>@Html.CheckBoxFor(m => m[i].postTrnx)</td>
@* <td class="label">@Html.DisplayFor(m => m[i].requisitionNumber) </td>*@
@*<td class="label">@Html.DisplayFor(m => m[i].transactionDate)</td>*@
</tr>
foreach (var item in Model[i].items)
{
@Html.HiddenFor(m => item.description)
@Html.HiddenFor(m => item.expense_account)
@Html.HiddenFor(m => item.itemNumber)
<tr>
<td class="col-lg-3 tabledata">@item.expense_account.account_desc</td>
<td class="col-lg-3 tabledata">@item.description</td>
<td class="label">@Html.DisplayFor(m => m[i].requisitionNumber) </td>
<td class="col-lg-3 tabledata">@item.itemNumber</td>
<td class="col-sm-1 tabledata">@item.quantity</td>
<td class="col-sm-1 tabledata">@item.selecteduomtext </td>
<td class="col-sm-1 tabledata">@item.price</td>
<td class="col-sm-1 tabledata">@item.extended_cost</td>
<td class="label">@Html.DisplayFor(m => m[i].transactionDate)</td>
<td>@Html.ActionLink("Edit", "Edit", new { id = @item.lineNum, name = Model[i].docNumber })</td>
</tr>
}
}
</table>