fnAddDataAndDisplay() displays the added row in the 1st page
fnAddDataAndDisplay() displays the added row in the 1st page
arjun_adhikari
Posts: 32Questions: 0Answers: 0
after spending much time on fnAddDataAndDisplay() it finally worked but the problem is that instead of paginating to the page where the row was added..
the added row is shown in the first page totally messing with my ordering
i wanted to ask..
a. Whether it is its default behavior which i doubt it is..
b. How to make the added row highlighted so that the end user could tell which row has been added.
i am relatively new to jquery so was not able to use the method mentioned by allan in the post below:
http://www.datatables.net/forums/discussion/3832/fnadddataanddisplay-how-do-i-access-the-object-it-returns/p1
arjun
the added row is shown in the first page totally messing with my ordering
i wanted to ask..
a. Whether it is its default behavior which i doubt it is..
b. How to make the added row highlighted so that the end user could tell which row has been added.
i am relatively new to jquery so was not able to use the method mentioned by allan in the post below:
http://www.datatables.net/forums/discussion/3832/fnadddataanddisplay-how-do-i-access-the-object-it-returns/p1
arjun
This discussion has been closed.
Replies
That's odd since the newly added row will be sorted with the rest of the table. The whole point of using fnAddDataAndDisplay is to take account of the sorting that DataTables applies to the data, so it will jump the paging to the new row.
Can you link to a test case showing the issue please?
Allan
the code works fine now..
i just missed a few details here and there which made the table react the way it did..
arjun