0 Replies Latest reply on Dec 28, 2010 7:06 AM by tomas.kotrbaty

    scrollableDataTable selection after scroll

    tomas.kotrbaty

      Hello,

       

      I have about 200 rows in my scrollableDataTable.

      It is very slow to display, so I add the "row" attribute to 20 for lazy loading.

      It works bad for me.

      It works bad also on the demo page here http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.jsf?c=scrollableDataTable&tab=usage

      Scenario:

      1.      I select 3 cars (Chevrolet Corvette, Chevrolet Malibu and Chevrolet S-10)

      2.      Click on the “Show” button … it shows OK 3 selected cars.

      3.      Scroll to the second half of the cars table and select another 3 cars (for example GMC Yukon, Infiniti G35 and Nissan Maxima)

      4.      Click on the “Show” button … it shows BAD 3 wrong cars (3x Toyota Camry in my case and any other wrong cars in other try)

       

      So selection after scrolling works wrong.

       

      When I have the “row” attribute set to 0 (zero), everything works fine, but it is too slow (200 rows = 25 seconds on page load /table with 10 columns/ ).

       

      Any ideas how to work around this issue (mainly I wanted some working lazy loading)?

       

      Thanks Tomas