Filter Expands My Table Cells Height

Filter Expands My Table Cells Height

marioangulomarioangulo Posts: 5Questions: 0Answers: 0
edited July 2011 in General
Whenever I do a search for a certain item it expands my cells height to fit inside my scrollbar length. Is there a way to fix this?

Here is a picture:

http://oi56.tinypic.com/66f5lu.jpg

Replies

  • marioangulomarioangulo Posts: 5Questions: 0Answers: 0
    Here is where I initialize the datatables plugin:

    [code]
    jQuery.fn.dataTableExt.oSort['num-html-asc'] = function(a,b) {
    var x = a.replace( /<.*?>/g, "" );
    var y = b.replace( /<.*?>/g, "" );
    x = parseFloat( x );
    y = parseFloat( y );
    return ((x < y) ? -1 : ((x > y) ? 1 : 0));
    };

    jQuery.fn.dataTableExt.oSort['num-html-desc'] = function(a,b) {
    var x = a.replace( /<.*?>/g, "" );
    var y = b.replace( /<.*?>/g, "" );
    x = parseFloat( x );
    y = parseFloat( y );
    return ((x < y) ? 1 : ((x > y) ? -1 : 0));
    };
    $(document).ready(function() {
    $('#myTable').dataTable( {
    "sScrollY": "465px",
    "bScrollCollapse": true,
    "bJQueryUI": false,
    "bAutoWidth": false,
    "bPaginate": false,
    "aoColumns": [
    null,
    { "sType": 'num-html' },
    null,
    null,
    null,
    null,
    null
    ],
    } );
    } );

    [/code]

    Here is the part where I coded my table where it populates with items.

    [code]







    <%
    tmpHdVals1 = split(tmpRows(0),"=")
    tmpHdVals = split(tmpHdVals1(1),":")
    %>
    <%=tmpHdVals(0)%>
    <%=tmpHdVals(1)%>
    <%=tmpHdVals(2)%>
    <%=tmpHdVals(3)%>
    <%=tmpHdVals(4)%>
    <%=tmpHdVals(5)%>
    <%=tmpHdVals(6)%>



    <%
    EO = "odd"
    For i = 1 to Ubound(tmpRows)-1
    tmpRowVals1 = split(tmpRows(i),"=")
    tmpRowVals = split(tmpRowVals1(1),":")
    %>>
    <%=getTwoWords(checkBar(curlv(tmpRowVals(0))))%>
    <%=tmpRowVals(1)%>
    <%[/code]
This discussion has been closed.