Loading ...
Sorry, an error occurred while loading the content.
 

Re: DataTable - Pagination and deleting a large number of discontinuous rows.

Expand Messages
  • allanbjork
    ... should ... range. ... you ll ... (desired_page ... Yes, it helped a lot. Thank you! --Allan
    Message 1 of 3 , Sep 4, 2008
      --- In ydn-javascript@yahoogroups.com, "Lucas Smith" <lsmith@...>
      wrote:
      >
      > Allan,
      >
      > After you delete from the RecordSet, you'll need to update the
      > Paginator's totalRecords and potentially recordOffset attributes.
      >
      > var paginator = $V.dataTable.get('paginator');
      > paginator.set('totalRecords',recordSet.getLength());
      >
      > This will also cause the Paginator to jump to the new last page
      should
      > the reduced number of records leave the prior last page out of
      range.
      > If you are aiming to target a particular page after deletion,
      you'll
      > need to set the recordOffset accordingly (rowsPerPage *
      (desired_page
      > - 1)).
      >
      > And $V.dataTable.unselectAllRows() will flush the internal selection
      > state and clear the selection class from all rows.
      >
      > Hope this helps,
      > Luke
      >

      Yes, it helped a lot.

      Thank you!

      --Allan
    Your message has been successfully submitted and would be delivered to recipients shortly.