How to make first column is fixed for data table, and how to disable search & sort features in DT?

How to make first column is fixed for data table, and how to disable search & sort features in DT?

satyamgaddamanugusatyamgaddamanugu Posts: 1Questions: 0Answers: 0
edited November 2012 in DataTables 1.9
Hello EveryOne,
I am creating a jquerymobile page with datatable concept.

I have a doubt that how to get first column is to be fixed in datatable??
and i dont need search & select number of pages options which are default by Datatable.

because i have only 3 rows & 2 columns of data exactly which i want to display like shown bellow link..
http://forum.jquery.com/topic/how-to-make-first-column-is-fixed-for-data-table-and-how-to-disable-search-sort-features-in-dt

can any one tell me how to do it?

actually i have seen this link.. http://datatables.net/release-datatables/extras/FixedColumns/index_column.html but i am not getting how to do.??

Replies

  • girishmrgirishmr Posts: 137Questions: 0Answers: 0
    edited November 2012
    Hmm with only two columns you want to make the first one fixed. Strange.
    Anyways, to disable sorting,

    Set as follows.

    [code]
    "bSort": false
    [/code]

    To disable pagination, no of pages selection etc. use
    [code]
    "sDom": 'rt<"clear">'
    [/code]
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > To disable pagination, no of pages selection etc. use

    And bPaginate / bLengthChange .

    It sounds like FixedColumns is what you want. You say it didn't work for you, but in what way? Without an explanation (and a link) of what is no working we can't offer any help!

    Allan
This discussion has been closed.