Hi,
there is a way to use Datatables without an ajax call?
What i would like to do is:
Use the partial page "Table" and pass an array of products
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "listview-grid",
Data = Model.Products
})
the problem I encountered is in _Table.Definition page;
@if (Model.Data != null)
{
<text>
data: @Html.Raw(Model.Data.ToString()),
</text>
}
this piece of code don't pass the array to the DataTables but render Model.Data as text.
Thanks.