Adding a new row

Adding a new row

KbFwthoxvgXsKbFwthoxvgXs Posts: 8Questions: 0Answers: 0
edited May 2013 in General
I know there is a function fnAddData to add a new row. It adds new record to the end. Is it possible to add a record at the beginning of the table?

Replies

  • KbFwthoxvgXsKbFwthoxvgXs Posts: 8Questions: 0Answers: 0
    Sorry, maybe I was to hurry in asking but maybe I do not need this functionality. Will figure out it tomorrow.
  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    No - added data's position is entirely dependent on the sorted applied to the table. If you want it to appear at the top, then it needs to be at the top according to the applied sorting.

    Allan
  • madmikemadmike Posts: 30Questions: 4Answers: 0
    edited May 2013
    Simply tr:first instead tr:last no ?
  • KbFwthoxvgXsKbFwthoxvgXs Posts: 8Questions: 0Answers: 0
    Thanks Allan. That's what I was thinking about also. But I figured out that I do not need the records to be placed at the top of a table. Sorry for bothering :-)
This discussion has been closed.