How to click Child rows - automatic show whole show

How to click Child rows - automatic show whole show

hyklhykl Posts: 48Questions: 19Answers: 5

Please refer to https://datatables.net/examples/api/row_details.html and there is a table. Click on the green PLUS symbol. On the first line when I click, so you can see the whole information - what it contains. The problem is that when I hit the last line - when I click and then does not display all the information and I have to roll the mouse down to see the whole information. I ask, something can be programmed to do this: when I click on a green box - CHILD ROWS - it automatically recognizes it when the whole information is visible on the screen, nothing is happening. When not visible - it automatically rolls downwards to see the whole information.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    It will heavily depend on the screen size of the user's monitor if the bottom row would show or not without scrolling.

    What you could do is use a jQuery plug-in such as scrollTo which would scroll the page to your target element (put a call to that plug-in in the row open event hander).

    Allan

This discussion has been closed.