Datatable Column Resize OK But, Multiple Empty Text
Datatable Column Resize OK But, Multiple Empty Text
Hi,
I have a datatable :
[code]
ogrenciCoordTable = $('#ogrenciCoordTable').dataTable({
"sDom": 't<"clear">',
"bScrollInfinite": true,
"bScrollCollapse": true,
"sScrollY": "220px",
"aaSorting": [[0, "asc"]],
"aoColumns": [
{ "mDataProp": "vcity_name" },
{ "mDataProp": "vcoordinatorship_name" },
{ "mDataProp": "Total_Capacity" },
{ "mDataProp": "Choose_Count" },
{ "mDataProp": "ncoord_ship_id" }
],
"aoColumnDefs": [
{
"aTargets": [4],
"mRender": function (data, type, full) {
return 'Seç';
}
}
]
});
[/code]
And my table is;
[code]
Dönem
Sınav Türü
Daha Önce Tercih Yapılmış mı
İşlem
<!-- table content goes here -->
[/code]
Assume that there is no data in my table, then my table shows "No data available in table" message in one row.
If I use column resizing function like ;
[code]
$(window).bind('resize', function () {
ogrenciCoordTable.fnAdjustColumnSizing();
});
[/code]
Then my table adds thausands of message rows like that;
Şehir Koordinatörlük Adı Kapasite Boş Kapasite İşlem
No data available in table
No data available in table
No data available in table
No data available in table
No data available in table
No data available in table
No data available in table
I need some help :)
I have a datatable :
[code]
ogrenciCoordTable = $('#ogrenciCoordTable').dataTable({
"sDom": 't<"clear">',
"bScrollInfinite": true,
"bScrollCollapse": true,
"sScrollY": "220px",
"aaSorting": [[0, "asc"]],
"aoColumns": [
{ "mDataProp": "vcity_name" },
{ "mDataProp": "vcoordinatorship_name" },
{ "mDataProp": "Total_Capacity" },
{ "mDataProp": "Choose_Count" },
{ "mDataProp": "ncoord_ship_id" }
],
"aoColumnDefs": [
{
"aTargets": [4],
"mRender": function (data, type, full) {
return 'Seç';
}
}
]
});
[/code]
And my table is;
[code]
Dönem
Sınav Türü
Daha Önce Tercih Yapılmış mı
İşlem
<!-- table content goes here -->
[/code]
Assume that there is no data in my table, then my table shows "No data available in table" message in one row.
If I use column resizing function like ;
[code]
$(window).bind('resize', function () {
ogrenciCoordTable.fnAdjustColumnSizing();
});
[/code]
Then my table adds thausands of message rows like that;
Şehir Koordinatörlük Adı Kapasite Boş Kapasite İşlem
No data available in table
No data available in table
No data available in table
No data available in table
No data available in table
No data available in table
No data available in table
I need some help :)
This discussion has been closed.