Refreshing from the server just a specific row/column. Is it possible?

Refreshing from the server just a specific row/column. Is it possible?

gordyrgordyr Posts: 35Questions: 0Answers: 0
edited November 2011 in DataTables 1.8
Hi all,

Is there any way when using server side processing to refresh 'just' a specific row or column?

I am adding a star rating system to a list of items which are filtered/displayed via datatables. My star rating system is working beautifully and the ratings data is tied in nicely with the server-side script using joins etc... so the data itself is retrieved via the standard ajax call that datatables expects....

I have uploaded an image to help illustrate exactly what I am looking to do.

http://imageshack.us/photo/my-images/703/exampledjw.jpg/

Essentially, everything works currently except that I would like the vote to be updated instantly without having to refresh the full table. So on success of my ajax POST which inserts or replaces the record in my votes table, I would like to be able to refresh the relevant column/row in datatables.

Currently I am only able to refresh the whole table.

Is this at all possible?

Cheers!

Replies

  • gordyrgordyr Posts: 35Questions: 0Answers: 0
    edited November 2011
    I ended up achieving this by writing my own custom jquery functions/server side code to retrieve just the data I wanted dynamically and to update the required 'div' with the new data.

    It works great, but I owuld still be interested to know if datatables has any kind of built in functionality for this kind of thing as i'm certain it would be more elegant than my implementation. :-P
This discussion has been closed.