On detail row expansion of datatable , page automatically scrolls to top , why & how to avoid it ?

On detail row expansion of datatable , page automatically scrolls to top , why & how to avoid it ?

nehapatilnehapatil Posts: 1Questions: 1Answers: 0

This will be difficult to put in jsfiddle , but here is the issue i am facing.
In my datatable i have two columns containing links for expansion of detail rows. both links load different detail row for the current parent row. on click of these links like the sample given in here (https://datatables.net/examples/api/row_details.html) a method like format to render a child row. but , on completion of $('#example tbody').on('click', 'td.details-control', function () {}) this method in sample , control goes into jquery 10.2 and then from there my page is automatically scrolled upto the top.
Can anyone point out why this is happening.and how to avoid it.

Answers

  • allanallan Posts: 63,252Questions: 1Answers: 10,420 Site admin

    The page doesn't appear to scroll up for me in the link you gave (Chrome / Mac). What browser are you using?

    Allan

This discussion has been closed.