Note that there are some explanatory texts on larger screens.

plurals
  1. POHeader height in dataTable
    text
    copied!<p>I have got the dataTable working. The only thing is that its header is of double the normal height. This seems to be due to very wide llist box ;</p> <p>"Show [A wide list box showing options 10,25,50,All] ..line break.. Entries"</p> <p>Actually this should fit in one line; but due to the width of list box, it takes 2nd line on header, making the header too fat. Similarly, the footer (pager) is also having double height. How do I fix this?</p> <p>Thanks, Vineet The code is from web2py framework (based on python) In the header--</p> <pre><code>script tag $(document).ready(function() { var oTable = $('#dept_table').dataTable( { "bJQueryUI": true, "sScrollY": "200px", "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], 'sPaginationType': 'full_numbers' }); }); end script tag </code></pre> <p>In the body--</p> <pre><code>&lt;h1&gt;Department Master&lt;/h1&gt; &lt;input type='submit' id='addNew' value='Add New Department' /&gt;&lt;br /&gt;&lt;br /&gt; &lt;table id="dept_table"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Department ID&lt;/th&gt; &lt;th&gt;Department Name&lt;/th&gt; &lt;th&gt;Link&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; {{for department in departments:}} &lt;tr&gt; &lt;td&gt;{{=department['deptid']}}&lt;/td&gt; &lt;td&gt;{{=department['deptnm']}}&lt;/td&gt; &lt;td&gt; {{=A('edit',_href=URL('frmDeptSave',vars={'did':department['deptid'],'dnm':department['deptnm']}),_class='edturl')}} {{=A('delete',_href=URL('frmDeptDel',vars={'did':department['deptid'],'dnm':department['deptnm']}),_class='delurl')}} &lt;/td&gt; &lt;/tr&gt; {{pass}} &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>Pl. tell me if you require anything else for suggesting a solution. ---Vineet</p>
 

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