My Jquery Data table is not working properly...

My Jquery Data table is not working properly...

N J Uchaiah SwamyN J Uchaiah Swamy Posts: 3Questions: 1Answers: 0

CSHTM: MVC4

@foreach (var item in Model.Alarms) { @item.AlarmShortName } @Model.BTSHeader.AlarmShortName @*Swamy Added @19-11-2019*@ @*Swamy Added @19-11-2019*@ @*Swamy Added @19-11-2019*@ @*Swamy Added @19-11-2019*@ @foreach (var item in @Model.Alarms) { }
Status
Site Name
Site ID
Mod
P
@*Swamy Added @19-11-2019*@ Source
Update Time
Fuel
Tp
@*Swamy Added @19-11-2019*@ Batt Vol
@*Swamy Added @19-11-2019*@ Batt SOC
@*Swamy Added @19-11-2019*@ Load Cur

JS:-


<!-- DataTables -->
<link type="text/css" href="~/media/css/jquery.dataTables.min.css" rel="stylesheet">
<script type="text/javascript">

    $(document).ready(function () {
        $('#tblEmployee').DataTable({
            "order": [[4, "desc"]],
            destroy: true,
            retrieve: true,
            "ServerSide": true
        });
    });

Answers

This discussion has been closed.