Datatable Search Box

Datatable Search Box

vaibhavt558vaibhavt558 Posts: 3Questions: 0Answers: 0
edited September 2012 in General
The default search box is not visible in my datatable. What plug-in do i need to use for this? Do i have to create some input field for this or what?
here is my datatable
[code]
$(document).ready(function() {
$("#showBacklog").addClass("selected");
$("#home").removeClass("selected");
$("#openReport").removeClass("selected");
$("#logout").removeClass("selected");
$("#changePassword").removeClass("selected");

$.ajax(
{
type : "GET",
url : "ajaxBacklog",
contentType : 'application/json',
data : null,
dataType : 'json',
success : function(json)
{
oTable = $("#backlogTable").dataTable({
"aaData" : json.aaData,
"bProcessing" : true,
"sPaginationType" : "full_numbers",
"bJQueryUI" : true,
"bRetrieve" : true,
"bPaginate" : true,
"bSort" : true,
"aaSorting" : [[ 4, "desc" ]],
"oLanguage": {
"sEmptyTable": "No records found."
},
"aoColumns": [
{ "bSortable": true, sClass: "alignCenter"},
{ sClass: "left"},
{ sClass: "left"},
{ sClass: "left"},
{ sClass: "left"},
{ sClass: "left"},
{ sClass: "left"},
],
"error": function() {
alert("Failed to load Data");
}
})
.columnFilter({ sPlaceHolder: "head:after",
aoColumns: [ null,
{ type: "text" },
null,
null,
null,
null,
null
]

});
}

}
);
[/code]

I have added a column filter but i need to have a search box as well which appears on top right of the table.
Please help

Replies

  • vaibhavt558vaibhavt558 Posts: 3Questions: 0Answers: 0
    and these are the scripts I have included in the jsp
    [code]





    [/code]
This discussion has been closed.