Column Filters not getting loaded
Column Filters not getting loaded
tanmay_baxi
Posts: 0Questions: 0Answers: 0
Hello,
I am using data table with server side implementation in java servlets to load data.
I want to add column filters for which I used following code.
[code]
$(document).ready( function () {
$("#equipments").dataTable({
"bServerSide": true,
"sAjaxSource": "/GIER/EquipmentsList",
"bProcessing": true,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"aLengthMenu": [5,10,15,20,50,100],
"bFilter": false,
"oLanguage": {
"sProcessing": ""
},
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$('td:eq(0)', nRow).html('');
$('td:eq(1)', nRow).html('TOC');
$('td:eq(2)', nRow).html(''+aData.eqPrefix+'');
<%
if (securityObject.isGierAdmin() || securityObject.isPrivateCompany()) {
%>
$('td:eq(13)', nRow).html('');
<%
} else { %>
$('td:eq(13)', nRow).html('');
<%
}
%>
return nRow;
},
"aoColumns": [
{
"bSortable": false,
"mDataProp": "equipmentId"
},
{
"bSortable": false,
"mDataProp": "equipmentId"
},
{
"mDataProp": "eqPrefix"
},
{
"mDataProp": "eqNumber"
},
{
"mDataProp": "eqCategoryCode"
},
{
"bSortable": false,
"mDataProp": "companyScaccdOwner"
},
{
"bSortable": false,
"mDataProp": "companyScaccdLessee"
},
{
"bSortable": false,
"mDataProp": "VINNumber"
},
{
"bSortable": false,
"mDataProp": "licenceState"
},
{
"bSortable": false,
"mDataProp": "licencePlateNo"
},
{
"mDataProp": "status"
},
{
"bSortable": false,
"mDataProp": "matched"
},
{
"bSortable": false,
"mDataProp": "tocPending"
},
{
"bSortable": false,
"mDataProp": "equipmentId"
}
]
}).columnFilter();
});
[/code]
[quote] I am not getting any exceptions in my console as well [/quote]
Please help me asap I am badly stuck in this.
Regards,
Tanmay
I am using data table with server side implementation in java servlets to load data.
I want to add column filters for which I used following code.
[code]
$(document).ready( function () {
$("#equipments").dataTable({
"bServerSide": true,
"sAjaxSource": "/GIER/EquipmentsList",
"bProcessing": true,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"aLengthMenu": [5,10,15,20,50,100],
"bFilter": false,
"oLanguage": {
"sProcessing": ""
},
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$('td:eq(0)', nRow).html('');
$('td:eq(1)', nRow).html('TOC');
$('td:eq(2)', nRow).html(''+aData.eqPrefix+'');
<%
if (securityObject.isGierAdmin() || securityObject.isPrivateCompany()) {
%>
$('td:eq(13)', nRow).html('');
<%
} else { %>
$('td:eq(13)', nRow).html('');
<%
}
%>
return nRow;
},
"aoColumns": [
{
"bSortable": false,
"mDataProp": "equipmentId"
},
{
"bSortable": false,
"mDataProp": "equipmentId"
},
{
"mDataProp": "eqPrefix"
},
{
"mDataProp": "eqNumber"
},
{
"mDataProp": "eqCategoryCode"
},
{
"bSortable": false,
"mDataProp": "companyScaccdOwner"
},
{
"bSortable": false,
"mDataProp": "companyScaccdLessee"
},
{
"bSortable": false,
"mDataProp": "VINNumber"
},
{
"bSortable": false,
"mDataProp": "licenceState"
},
{
"bSortable": false,
"mDataProp": "licencePlateNo"
},
{
"mDataProp": "status"
},
{
"bSortable": false,
"mDataProp": "matched"
},
{
"bSortable": false,
"mDataProp": "tocPending"
},
{
"bSortable": false,
"mDataProp": "equipmentId"
}
]
}).columnFilter();
});
[/code]
[quote] I am not getting any exceptions in my console as well [/quote]
Please help me asap I am badly stuck in this.
Regards,
Tanmay
This discussion has been closed.