Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well... I answered my own question with a good nights sleep. You need to create a config var and set the containers property to different values for each datatable (ex: pagination1, pagination2, pagination3). In the HTML markup, you need to create two div containers the first tag id must be set to the container name for the datatable and the second to the container name for the paginator.</p> <pre><code>&lt;div class="yui-content"&gt; &lt;div id="tab1"&gt; &lt;div id="datatable1" class="yui-dt-nowrap"&gt;&lt;/div&gt; &lt;div id="pagination1"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="tab2"&gt; &lt;div id="datatable2" class="yui-dt-nowrap"&gt;&lt;/div&gt; &lt;div id="pagination2"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="tab3"&gt; &lt;div id="datatable3" class="yui-dt-nowrap"&gt;&lt;/div&gt; &lt;div id="pagination3"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <hr> <pre><code>var configs = { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, template: YAHOO.widget.Paginator.TEMPLATE_ROWS_PER_PAGE, rowsPerPageOptions: [25,50,100], pageLinks: 5, containers: "pagination1" }), width :"99%", draggableColumns:true, formatRow: descriptionToTitleFormatter }; var datatable1 = new YAHOO.widget.ScrollingDataTable("datatable1", columnTitles, datasource1, configs); datatable1.subscribe("rowMouseoverEvent", datatable1.onEventHighlightRow); datatable1.subscribe("rowMouseoutEvent", datatable1.onEventUnhighlightRow); }); configs = { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, template: YAHOO.widget.Paginator.TEMPLATE_ROWS_PER_PAGE, rowsPerPageOptions: [25,50,100], pageLinks: 5, containers: "pagination2" }), width :"99%", draggableColumns:true, formatRow: descriptionToTitleFormatter }; var datatable2 = new YAHOO.widget.ScrollingDataTable("datatable2", columnTitles, datasource2, configs); datatable2.subscribe("rowMouseoverEvent", datatable2.onEventHighlightRow); datatable2.subscribe("rowMouseoutEvent", datatable2.onEventUnhighlightRow); }); ... and so on... </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload