is it possible to link directly to a record in datatables?

is it possible to link directly to a record in datatables?

rw1rw1 Posts: 42Questions: 0Answers: 0
edited February 2013 in DataTables 1.9
hello,

is it possible to link directly to a record in datatables? (using server side processing)

i am thinking it could be possible to link to datatables with a search query already filled in perhaps?

i've searched for this but have mainly come across answers relating to adding hyperlinks to the records in datatables and what i am trying to do is make hyperlinks that point exactly to a specific record in datatables, for example 'click here to view this record'.

thank you.

Replies

  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin
    Possibly... Its kind of up to your server-side script since DataTables on the client-side doesn't hold that information. You probably need to send an extra parameter to tell it to reduce to that row, or otherwise make an Ajax request to the server to say 'where is this row' and then tell DataTables to display from that index. Two Ajax requests, but when using server-side processing, I'm not sure there are many other options.

    Allan
  • rw1rw1 Posts: 42Questions: 0Answers: 0
    thank you for that considered response, i don't currently have the skills to implement those features but am thinking about trying to create a link that when it arrives on the page, fills text in the input field (with a typewriter effect) - i know it's not as civilised as the above method, but it might be ok for now :)
This discussion has been closed.