sDom not working

sDom not working

isolnzisolnz Posts: 2Questions: 0Answers: 0
edited June 2012 in DataTables 1.9
i have tried different formats like
"sDom": '<"top"iflp<"clear">>rt<"bottom"iflp<"clear">>'
"sDom": '<"top"i>rt<"bottom"flp><"clear">'

but no effect in appearance
what should b the reason

i want to remove all filter, info, pagination all options, so that it resemble a simple table, what should i do?

Replies

  • nickog3dnickog3d Posts: 4Questions: 0Answers: 0
    I use it like this:
    [code]
    var oTable = $('#yourtable').dataTable( {
    "sDom": 't'
    } );
    [/code]

    t is the actual table so I guess you need it. :)

    Try learning what each of the options are from here:
    http://datatables.net/usage/options#sDom
  • isolnzisolnz Posts: 2Questions: 0Answers: 0
    thanks nickog3d for your response
    i have tried this too
    but has to effect on my table appearance

    i have set all options false like
    "bDestroy": true,
    "bRetrieve": true,
    "bLengthChange": false,
    "bPaginate": false,
    "bFilter": false,
    "bSort": false,
    "bInfo": false,
    "bAutoWidth": false,
    "sPaginationType": "full_numbers",
    "sDom": 't'

    one more thing, i m using ajax to populate table, then make some changes in it and then save it to server using ajax.
    i dont know whats wrong with appearance. searching, sorting, pagination everything working fine. but dont want to enable this features.
    if u have any idea or experience regarding this problem then plz inform me
    thanks in advance
  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    I think you'll need to give us a link to the page or at least show us your full code. As you can see here ( http://live.datatables.net/ekecev/edit#javascript,html,live ), setting sDom to just 't' as nickog3d suggests does remove all of the control elements.

    Allan
This discussion has been closed.