<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
@*<th style="width:0px"></th>*@
<th>Name</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Total Price</th>
<th>Company Name</th>
<th style="display:none"></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in list)
{
<tr>
<td name="pname">@item.Material_Name</td>
<td name="pprice">@item.Quantity</td>
<td name="pdetail">@item.Unit_Price</td>
<td name="pdetail">@item.Total_Price</td>
<td name="pdetail">@item.Name</td>
<td name="pid" style="display:none; white-space:nowrap">item.Id</td>
</tr>
}
</tbody>
</table>
<button class="btn btn-primary btn-lg btn-block" name="save" type="button">Print</button>
I want to get list of products from datatable at action.after getting the list i want to print that list. Now i just want to get list from datatable to action.