0
<table cellpadding="0" cellspacing="0" border="1" class="display" id="FormsData" style="margin-bottom:5px;">
<thead>
<tr id="thFormsData">
</tr>
<tr>
</tr>
</thead>
<tbody>
<tr>
<td class="dataTables_empty">
Loading data ...
</td>
</tr>
</tbody>
</table>
위의 표는 jQuery 데이터 테이블의 테이블 구조입니다. 그리고 그것을 채우기 위해 아래의 코드를 사용하고 있습니다.jQuery 데이터 테이블 초기화 전 추가
$(document).ready(function() {
$('#FormsData').dataTable({
"sDom": 'T<"clear">lfrtip',
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "GetJsonData.aspx?FormKey=" + getQuerystring("FormKey", "") + "&FormData=Get"
)}
)}
이제 문제는 이러한 방식으로 I는 시일을 JQuery와 열로 사용되는 테이블 구조 번째 을 정의 할 필요가 있다는 것이다. 하지만 제 경우에는 초기화하기 전에 테이블에 번째을 동적으로 추가하려고합니다.
나는 번째에서 얻은 json 데이터를 기초로 GetJsonData.aspx 파일을 추가하려고합니다. 그 정의는 "sAjaxSource": "GetJsonData.aspx ..."