Display a row only on the last page of Datatable.

Display a row only on the last page of Datatable.

nomibzunomibzu Posts: 1Questions: 0Answers: 0
edited January 2014 in General
I want to display a row only on the last page,I am using Client side datatable.How can I do this?

Replies

  • Steve_WebtronSteve_Webtron Posts: 19Questions: 0Answers: 0
    Add it into the dataTable that has a hidden column for sorting just this row
    have all other rows contain 0, and the last row contain 9999
    always apply the custom sort to have that hidden column applied ascending first when sorting.
  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    @nomibzu:
    Where is the data coming from?
    How do you determine which row is to be displayed only on the last page?
    What would be the intended result of the table being sorted?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You could use fnDrawCallback to inject it manually perhaps? Or sorting as Steve_Webtron says.

    Allan
This discussion has been closed.