This content has been marked as final.
Show 2 replies
-
1. Re: rich:extenedDataTable sorting resets the horizontal scrollbar
paulineg Nov 20, 2012 8:36 AM (in response to paulineg)Here is my solution using jQuery:
<script>
var position;
$.fn.setScroll = function(){ scrollPos = j(".rf-edt-scrl").scrollLeft();};
$.fn.updateScroll = function(){ j(".rf-edt-scrl").scrollLeft(scrollPos);};
</script>
For sorting
<a4j:commandLink value="#{columnName}" action="#{Bean.sort(index.index)} onbegin="$(this).setScroll();" oncomplete="$(this).updateScroll();" render="table"></a4j:commandLink>
For filtering
<h:inputText value="#{Bean.filterValue[index.index]}">
<a4j:ajax event="blur" onbegin="$(this).setScroll();" oncomplete="$(this).updateScroll();" render="table" execute="@this"/>
</h:inputText>
-
2. Re: rich:extenedDataTable sorting resets the horizontal scrollbar
rss Sep 17, 2013 6:46 AM (in response to paulineg)