Hi, I looked at the online document and started playing around with the sDom placement.
After playing with different lifp combination, I was able to get the Show X entries and information on the first line and the filter on the next line. This is above the datatable.
Below the datatable, I was able to get teh information (Showing 1 to 10 of XXX entries) on the first line, and the Show X entries and pagination on the next line.
My question, how can I get all three controls all on 1 line for the top and bottom. Thanks..
Replies
Allan
After playing with different lifp combination, I was able to get the Show X entries and information on the first line and the filter on the next line. This is above the datatable.
Below the datatable, I was able to get teh information (Showing 1 to 10 of XXX entries) on the first line, and the Show X entries and pagination on the next line.
My question, how can I get all three controls all on 1 line for the top and bottom. Thanks..
var oResultGrid = $("[id$='gvSearchResults']");
if (fixEmptyDataRow(oResultGrid)) {
var oTable = oResultGrid.dataTable({
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"sDom": '<"top"lif<"clear">>rt<"bottom"ipl<"clear">>'
});
}
else {
oResultGrid.dataTable({
"sPaginationType": "full_numbers",
"aaSorting": [[2, 'asc']],
"sDom": '<"top"lif<"clear">>rt<"bottom"ipl<"clear">>'
});
}
Allan