Kayıtlar

Ocak, 2012 tarihine ait yayınlar gösteriliyor

Richfaces DataTable Fixed Header

Hi folks, for people who want to have a datatable with a fixed header but not want to use richfaces:extendeddatatable you may use following solution. I seeked internet a lot to find a better solution but couldn't find any solution for this. anyway here is my solution: first i need to tell you that you need to have jQuery for following solution: please note that "#customerForm\\:custTable" is the id of the datatable jQuery(document).ready(function() { initFixedHeader(); }); function initFixedHeader(){ if(jQuery('#myDiv').scroll()) jQuery('#myDiv').scroll(moveScroll); var componentId = '#{rich:clientId('custTable')}'; componentId = componentId.replace(/:/g, "\\\:"); jQuery('#inDiv').empty(); ...