sorting images are not displayed in my table
sorting images are not displayed in my table
prasannahbin
Posts: 5Questions: 0Answers: 0
Hi,
I am new to this JQuer datatables. In table header sorting images are not getting displayed. When I debugged this code with firebug it is showing "sorting" class as a stroked off lines. Anybody can help to resolve this issue.
Thanks.
I am new to this JQuer datatables. In table header sorting images are not getting displayed. When I debugged this code with firebug it is showing "sorting" class as a stroked off lines. Anybody can help to resolve this issue.
Thanks.
This discussion has been closed.
Replies
thanks for your reply. That problem is resolved by changing some CSS code. Now I need some help regarding sorting.
Numeric field sorting is not correct. Can you please help me in this regard? Here is my code.
reports_files_list = $('#reports_data_grid').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": ".calling server side file", // file name is changed
"sPaginationType": "full_numbers",
"aoColumns": [
{ "sClass": " ","bVisible" : false},
{ "sClass": " Name"},
{ "sName": " Date" },
{ "sName": " Amount" },
{ "sName": "Currency" },
{ "sName": "Status Code" }
]
});
Where do I need to change my code?
Thanks in advance.
I got the same trouble. Finally i solved, the problem in css style sheet. Add the "demo_table_jui.css" style sheet into your code.
Here i have modified the your code for sorting. Use this,
"aoColumns": [
{ "sClass": " ","bVisible" : false},
{ "sClass": " Name","asSorting": ["asc", "desc"], "bSortable": true},
{ "sName": " Date","asSorting": ["asc", "desc"], "bSortable": true },
{ "sName": " Amount","asSorting": ["asc", "desc"], "bSortable": true },
{ "sName": "Currency","asSorting": ["asc", "desc"], "bSortable": true },
{ "sName": "Status Code","asSorting": ["asc", "desc"], "bSortable": true }
]