bScrollCollapse, cutom headers
bScrollCollapse, cutom headers
I use fnDrawCallback to add custom daily headers, tking a full row.
Right now, I am filtering, seeing 3 rows, however have to scroll because the first row is the header, see 2 more rows and for the 3rd row of data have to scroll to see it.
Not sure on how to fix.
Thanks,
Gerardo
Right now, I am filtering, seeing 3 rows, however have to scroll because the first row is the header, see 2 more rows and for the 3rd row of data have to scroll to see it.
Not sure on how to fix.
Thanks,
Gerardo
This discussion has been closed.
Replies
Thanks,
Gerardo
I'm afraid I'm not sure I fully understand - you see three rows, but you have to scroll to see the 3rd row's data? Can you link us to an example please?
Regards,
Allan
[code]
for ( var i=0 ; i
[code]
oSettings.nTable.parentNode.style.height = $(oSettings.nTable).height()+"px";
[/code]
Allan
Thanks,
Gerardo
must do it only if this value is less than sScrollY (oSettings.sScrollY? )
Thanks,
Gerardo
Gerardo
[code]
oSettings.nTable.parentNode.style.height =
Math.min($(oSettings.nTable).height(),oSettings.oScroll.sY)
+ "px";
[/code]
This way, it collapses when it is right, and also goes back to full size when it is right (for example, after putting/clearing a filter).
But turned out bScrollCollapse was gone at this time, and when it is turned on, the above code is now not necessary.
Thanks,
Gerardo
Thanks,
Gerardo