title: YUI DataTable - Howto have just one paginator?
body: <p>I'm using the YUI DataTable in a Grails 1.1 project using the Grails UI plugin 1.0.2 (YUI being 2.6.1).</p>
  
  <p>By default, the DataTable displays 2 paginators: one above and another one below the table. Looking up the YUI API documentation, I could see that I can pass an array of YUI containers as a config parameter but - what are the names of these containers?</p>
  
  <p>I've tried loooking at the HTML of the page using Firebug. The ID of the divs containing the paginators are: yui-dt0-paginator0 (above) and yui-dt0-paginator1 (below). If I use them to configure the containers for the navigator, then the navigator is just not displayed at all. Here's the relevant extract of the GSP page containing the Datatable element.</p>
  
  <pre><code>    &lt;div class="body"&gt;
          &lt;h1&gt;This is the List of Control Accounts&lt;/h1&gt;
          &lt;g:if test="${flash.message}"&gt;
          &lt;div class="message"&gt;${flash.message}&lt;/div&gt;
          &lt;/g:if&gt;
          &lt;div class="yui-skin-sam"&gt;
              &lt;gui:dataTable
              controller="controlAccount" action="enhancedListDataTableJSON"
              columnDefs="[
                  [key:'id', label:'ID'],
                  [key:'col1', label:'Col 1', sortable: true, resizeable: true],
                  [key:'col2', label:'Col 2', sortable: true, resizeable: true]
                  ]"
              sortedBy="col1"
              rowsPerPage="20"
              paginatorConfig="[
              template:'{PreviousPageLink} {PageLinks} {NextPageLink} {CurrentPageReport}',
              pageReportTemplate:'{totalRecords} total accounts',
              alwaysVisible:true,
              containers:'yui-dt0-paginator1'
              ]"
              rowExpansion="true"
              /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Any help?</p>
  
  <p>Thanks!</p>
  
  <p>Rollo</p>