2 Replies Latest reply on Mar 18, 2009 8:56 AM by sujitkm

    rich datascroller with rich column sort does not work proper

      The datascroller was working fine all these days until we decided to add sorting feature to column header. Now the datascroller completely disappears if we click the last page(After we do a sort).It works perfect before sorting.. Please suggest if there is any solution to it. There is this warning comes "Setting to page 1 as the last page not found"(something simillar).

        • 1. Re: rich datascroller with rich column sort does not work pr
          ilya_shaikovsky

          I hope you using 3.3.0 GA?

          seems the case you described works fine..
          http://livedemo.exadel.com/richfaces-demo/richfaces/sortingFeature.jsf

          • 2. Re: rich datascroller with rich column sort does not work pr

            The diff. I found that I don't have the datascroller in footer section and also i didn't specify rerender attribute in rich datatable. I tried both the option now when I keep the datascroller in footer it gets disabled instead of dissapearing.

            Here is a snapshot of code from view side(earlier code).

            <h:panelGrid>
            <rich:dataTable id="viewDetails" width="100%" headerClass="grid-title" footerClass="grid-title"
             rowClasses="even,odd" styleClass="list-background" binding="#{SeniorDiscountController.dataTable}" rows="#{SeniorDiscountController.pagination.recordsPerPage}" rendered="#{SeniorDiscountController.showResults}" value="#{SeniorDiscountController.data}" var="store">
            
             <rich:column sortBy="#{store.accountNumber}">
             <f:facet name="header">
             <h:outputText id="head_acc_num" value="Account Number"/>
             </f:facet>
             <h:outputText id="out_txt_accNum" value="#{store.accountNumber}"/>
             </rich:column>
            ......................
            ........................
            </rich:dataTable>
            
            
             <rich:datascroller style="text-align:center" align="left" for="viewDetails" maxPages="10"
             page="#{SeniorDiscountController.pagination.pageNumber}" renderIfSinglePage="false" rendered="#{SeniorDiscountController.showResults}" id="sc2" scrollerListener="#{SeniorDiscountController.scrollTo}" reRender="sc2,viewDetails" />
            </h:panelGrid>
            

            I tested by moving the scroller inside footer and specifying rerender for datatable. Nothing works.If I remove sortBy everything works FINE. Please help.