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

Re: YUI DataTable - Pagination and X-scrolling

Expand Messages
  • y_lsmith
    ... In your DataTable config include the following: var myTblConfig = { scrollable : true, width : 400px , // for example paginator : new
    Message 1 of 2 , Aug 4 10:39 AM
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "AMIT AGARWAL"
      <amit_agarwal@...> wrote:
      >
      > I am using YUI DataTable in my page. I have about 12 columns in the
      > DataSource. Displaying so many columns in a single page will enable the
      > entire page to be scrolled. I do not want that.
      > My problem is: How to enable Pagination and x-scrolling at the same
      > time? I have tried some combinations but both are not getting enabled
      > at the same time.
      > Anyone has clues to this problem ?
      >

      In your DataTable config include the following:
      var myTblConfig = {
      scrollable : true,
      width : '400px', // for example
      paginator : new YAHOO.widget.Paginator({ rowsPerPage: 20 })
      };

      Hope this helps,
      Luke
    Your message has been successfully submitted and would be delivered to recipients shortly.