I have an MVC view that after the client click a button a partial view is rendered.
I want to use: window.scrollTo(0, document.body.scrollHeight);
after the partial view is fully rendered, so the client will "jump" to the result of the click.
the thing is: it fires before the partial view is rendered and goes to the bottom of the screen as is before the page height is extanded...
how can I force it to wait untill the partial view is fully rendered?
Thank you!
$('#___').load('/Home/___?departmentId=' + departmentId);
– Shlo Nov 19 '13 at 14:05window.scrollTo(0, document.body.scrollHeight);
directly in the partial view would help. – Andrei V Nov 19 '13 at 14:06