DataTable not working in mvc5 if used multiple table data in one table

DataTable not working in mvc5 if used multiple table data in one table

sainixsainix Posts: 13Questions: 6Answers: 0
@if (Model.ReporttypeId == 1) { } @if (Model.ReporttypeId == 2 || Model.ReporttypeId == 3 || Model.ReporttypeId == 4 || Model.ReporttypeId == 5 || Model.ReporttypeId == 6) { if (Model.ReporttypeId != 3) { } } @{var v = (from p in Model.CourtCaseReportList select new { OfficeName = p.OfficeName }).Distinct();} @foreach (var item in v) { foreach (var item1 in Model.CourtCaseReportList.Where(x => x.OfficeName == item.OfficeName).ToList().Distinct()) { @if (Model.ReporttypeId == 1) { } @if (Model.ReporttypeId == 2 || Model.ReporttypeId == 3 || Model.ReporttypeId == 4 || Model.ReporttypeId == 5 || Model.ReporttypeId == 6) { if (Model.ReporttypeId != 3) { } } } }
Public Works Department, Govt. of NCT of Delhi
@if (Model.ReporttypeId == 1) {@Html.Raw("General Court Cases Report")} @if (Model.ReporttypeId == 2) {@Html.Raw("List of Court Cases")} @if (Model.ReporttypeId == 3) {@Html.Raw("List of Court Cases (Nature of Dispute wise)")} @if (Model.ReporttypeId == 4) {@Html.Raw("List of Court Cases (Court wise)")} @if (Model.ReporttypeId == 5) {@Html.Raw("List of Court Cases Report (Reply filed or not)")} @if (Model.ReporttypeId == 6) {@Html.Raw("List of Court Cases (Date of Next Hearing)")}
S. No. Case Title
(Click on Case Title for more info)
Court Concerned Dispute Name Date of Next Hearing RemarksCase No.Court ConcernedDate of Next Hearing Nature of Dispute Present Position Advocate Name
@item.OfficeName
@item1.SNo @item1.CaseTitle @item1.CourtName @item1.NatureDisputeName @item1.NextHearingDate @item1.SpecialRemark@item1.CaseNo@item1.CourtName@item1.NextHearingDate @item1.NatureDisputeName @item1.PresentPosition @item1.AdvocateName




<link href="~/Content/DataTables/css/jquery.dataTables.min.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/tabletools/2.2.0/css/dataTables.tableTools.css" rel="stylesheet" />

$(document).ready(function () { $('#mytable').dataTable(); });
This discussion has been closed.