Question

I've a datatable that is wrapped inside a div. This div has a fix height with overflow: auto, which will cause vertical scroll bar to show when overflow occurred. This datatable has a EDIT link on each row, where user can click on to edit data. This link is a commandlink with ajax. The ajax is working fine. The problem that I'm having is that after the ajax refreshed that datatable, the vertical scroll bar is being repositioned to the top. Is there a way to prevent this?

Thanks

No correct solution

OTHER TIPS

I was able to get around this problem by changing the render attribute of the ajax tag form @form to the datatable id.

thanks

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top