bSort doesn't work in new version
bSort doesn't work in new version
Hi Allan! i'm using a new version of DataTables v 1.3. and i have next 2 problems:
1. When i try to use FixedColumns, i have the problems with the first column. U can see screenshots here:
http://www.meritkapital.com/screen1.JPG
the config of my table is:
[code]
oTable = j('#portfolioTable').dataTable({
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"sScrollX": "100%",
"sScrollY": "100%",
"bJQueryUI": true,
});
new FixedColumns( oTable );
[/code]
2.The next problem, i don't need to have sorting and tried to use "bSort":false, but all my header become white color,as :
http://www.meritkapital.com/screen2.JPG
please, how i can resolve it?
Thanks a lot!
1. When i try to use FixedColumns, i have the problems with the first column. U can see screenshots here:
http://www.meritkapital.com/screen1.JPG
the config of my table is:
[code]
oTable = j('#portfolioTable').dataTable({
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"sScrollX": "100%",
"sScrollY": "100%",
"bJQueryUI": true,
});
new FixedColumns( oTable );
[/code]
2.The next problem, i don't need to have sorting and tried to use "bSort":false, but all my header become white color,as :
http://www.meritkapital.com/screen2.JPG
please, how i can resolve it?
Thanks a lot!
This discussion has been closed.
Replies
[code]
var oTable = $('#example').dataTable( {
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bScrollCollapse": true,
"bSort": false
} );
[/code]
You are indeed quite correct - thanks for picking that up! I've just committed a fix for this, and you can grab the development version from the 'nightly' option on the downloads page ( http://datatables.net/download/ ) which has this fix in it. It will be included in the next release.
Regards,
Allan
next question, i have the table like: http://www.meritkapital.com/screen1.JPG
do u have some class, which u can assign to row and this row will consider as a group row??
i mean i should have in a table like "COMMODITIES" - main group, "INDEX" - subgroup, and after other entries. and i will have a few group, subgroup and so on....
i found groupping function, but it's very complicated. Bcs i have jsp and my table is building dinamically, so i can't know what rows is group/subgroup from JS.
Thanks a lot!
Allan
Allan
http://www.meritkapital.com/screen1.JPG
but when i mobe to "BENCHMARK" tab, i see that my header in the column doesn't displayed!
http://www.meritkapital.com/screen2.JPG
if i ress refresh , eberything becomes ok!
what is the problem?
Also the row grouping functionality will likely be a while off. Probably DataTables v2.1 or later - I'm not sure yet...
Allan
can u lokk now!
[code]
cookie: {
// store cookie for a day, without, it would be a session cookie
expires: 1
},
[/code]
this is a full config:
[code]
j("#tabs").tabs({
collapsible: true,
cookie: {
// store cookie for a day, without, it would be a session cookie
expires: 1
},
"show": function(event, ui) {
var cTable = j('div.dataTables_scrollBody>tabs', ui.panel).dataTable();
if ( cTable.length > 0 ) {
cTable.fnAdjustColumnSizing();
}
}
[/code]
Allan