Datatable display class is not setting for datatable

Datatable display class is not setting for datatable

kiridharkiridhar Posts: 4Questions: 0Answers: 0
edited August 2012 in DataTables 1.9
I am using Datatable 1.9.3. I want to have gradient border and rounded corner on the tables. In order to display with previous version of the browser using the technique http://css3pie.com/ . I am using following snippet.






Column 1
Column 2
Column 3





$("#id_3").dataTable({"bServerSide":false,"bFilter":false,"bLengthChange":false,"bSortClasses":false,"bSort":false,"sScrollx":"300px","sScrolly":"300px"
});


The solutions for this is really appreciated. Thank you in advance.
Note: That even set class display to table sometimes its not coming.

Regards,
Giri

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited August 2012
    DataTables will automatically add the class `dataTable` to the table, not `display` . So if you want `display` on it, just stick it in the HTML! :-)

    Allan
  • kiridharkiridhar Posts: 4Questions: 0Answers: 0
    Dear Allan,
    Thank you for the information, but the columns are aligned to the table width.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you give us a link please?

    Allan
  • kiridharkiridhar Posts: 4Questions: 0Answers: 0
    Hi Allan,

    here is the link http://testing.perfectforms.com/PresentationServer/Form.aspx/Play/zFNgAgUE

    Also give us some suggesstion on the how to make re-sizable column using datatable?

    I really apperciate your support on this.

    Thank you and have a great day.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited August 2012
    The table is hidden when you initialise it - you need to call fnAdjustColumnSizing when you make it visible so DataTables actually has some dimensions to work with.

    For example:

    [code]
    $('#PF_3').dataTable().fnAdjustColumnSizing()
    [/code]

    Allan
  • kiridharkiridhar Posts: 4Questions: 0Answers: 0
    Thanks a lot!!!, it worked
    But we are facing other issue was column colour and styles, header
This discussion has been closed.