TextBox Search Hidden

TextBox Search Hidden

blastorblastor Posts: 14Questions: 0Answers: 0
edited December 2011 in General
i would to hide the textBox Search, because i have a datatables alredy filtered to default and i don't want modified... i want to hide the textbox but not the functionality

Replies

  • printmarketprintmarket Posts: 9Questions: 0Answers: 0
    edited December 2011
    You need to modify your sDom function within the javascript. Take a look at here:

    http://datatables.net/release-datatables/examples/advanced_init/dom_multiple_elements.html

    the code is look like this:

    [code]$(document).ready(function() {
    $('#example').dataTable( {
    "sDom": '<"top"iflp<"clear">>rt<"bottom"iflp<"clear">>'
    } );
    } );
    [/code]


    what you need to do is to exclude the 'f' parameter from sDom and put your desire parameters (e.g. 't' for table, 'i' for informations) in desire div part of the table. here is the full reference to the sDom function:

    http://datatables.net/release-datatables/examples/basic_init/dom.html


    hope this is what you are looking for.

    Regards,
    Mehrdad
This discussion has been closed.