fixed row

fixed row

ppantappanta Posts: 16Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
Hi Allan,
is there any way that we can fix a row (let's say second row of the data table) at the same place whenever scrolling, and exclude it from sorting, searching as well.

Appreciate your answer.

Thank you.

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    No - sorry. That functionality doesn't exist in the DataTables code base at the moment. The closest that currently exists is FixedHeader / FixedColumns.

    Allan
  • ppantappanta Posts: 16Questions: 0Answers: 0
    Thank you Allan for your quick response.
    So, then, I want to concatenate the first and second row with header then put it into header (Probably in sTitle).
    And, remove the first and second rows from the table. Can you please suggest me the right way.
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    just do exactly as you say then :-). Move the first row's TR element out of the TBODY and into the THEAD.

    Allan
  • ppantappanta Posts: 16Questions: 0Answers: 0
    Allan, i am not sure how can i do it. can u please give a similar example
  • ppantappanta Posts: 16Questions: 0Answers: 0
    the table data is from database. so i think there should be some way to do so once the table loaded .
This discussion has been closed.