0
更改Id時數據表無法正常工作。 這裏是代碼:更改表格時數據表無法正常工作Id
$('#TableId1').DataTable(
{
'columnDefs': [{
'targets': 0,
'searchable': false,
'orderable': false,
"bLengthChange": false, "pageLength": 15, "stateSave": true,
'width': '1%',
'className': 'dt-body-center',
}
,
],
"language":
{
"processing": "<div class='overlay custom-loader-background'><i class='fa fa-cog fa-spin custom-loader-color'></i></div>"
},
"processing": true,
"serverSide": true,
"order": [[0, "asc"]],
"ajax":
{
"url": "/TicketTemplate/GetAssignData",
"type": "POST",
"dataType": "JSON"
},
"columns": [
{ "data": "Title" },
{ "data": "Description" },
{ "data": "Duedate" },
{ "data": "AssignBy" },
{ "data": "Status" }
]
});
//$("#note1").html("");
//$("#partialSummaryDiv").html("");
//$("#partialSummaryDiv").html(data.responseText);
//document.getElementsByClassName('braja')[0].style.visibility = 'hidden';
}
});
}
}
如果我使用的,而不是TABLEID這是working..what應該怎麼辦?
下面是表:
<table class="table table-striped table-bordered table-hover" id="TableId1">
<thead>
<tr>
@*<th>
<label class="mt-checkbox mt-checkbox-single mt-checkbox-outline">
<input type="checkbox" class="group-checkable" id="chkall" data-set="#sample_1 .checkboxes" onclick="Selectallcheckbox()" />
<span></span>
</label>
</th>*@
<th> Title </th>
<th> Description </th>
<th> Duedate </th>
<th> AssignBy</th>
<th> Status </th>
</tr>
</thead>
我應該怎麼辦?
爲什麼這不是命中控制器的方法可以任何一個精心製作? 錯誤在哪裏?
爲什麼它不工作?
我不是獲取 – Manoj
在第一種情況下,我正在使用第一個表.. .. r第一個表id是TableId,第二個表是不同的部分值有TableId 1但tableid1它不起作用 – Manoj
我應該怎麼做 – Manoj