3 Replies Latest reply on Aug 6, 2012 4:26 AM by healeyb

    Focus on same row in extendedDatatable

    mallareddy.g

      Hi All...,

       

      I'm using extendedDataTable with Lazy loading. I'm going to certain row(Total 500 rows, at 180th row) and clicking on that row.

      Performing some opertion on that row and reRendering the entire DataTable.

       

      Here my client want to see same table state(He need focus on 180 row) as previous.

       

      How should I set the focus on selected row.........? or is there any other way.?

       

      Please help me on this.

       

      Thanks. 

        • 1. Re: Focus on same row in extendedDatatable
          healeyb

          I would expect that if the selection= attribute is set to the row in question that it would be selected on rerendering,

          so this might be worth a try.

           

          Regards,

          Brendan.,

          • 2. Re: Focus on same row in extendedDatatable
            mallareddy.g

            Hi Brendan,

            Thanks for your replay.

            I'm able to set the selected rows using selection attrubute.

            My client want to see same state of the table (180th row has selected.) after rerendering datatable.He dont want to sroll down again.

            When I rerender the table the scroll is coming to initial position.

             

             

             

            Is it possible to set the same position of the scroller as privous after rerendering the datatable....?

             

             

            Thanks,

            MallaReddy.

            • 3. Re: Focus on same row in extendedDatatable
              healeyb

              I see what you mean, that type of lazy loading (clientRows rather than rich:dataScroller?). Tricky one that, I

              don't know how to do it. I'd suggest having a good search through this forum as I'm sure it's been discussed

              before and perhaps someone has come up with a solution which would probably involve a good deal of

              javascript/jquery.

               

              Sorry I can't be of any more help but if you come up with anything please keep us posted.

               

              Regards,

              Brendan.