What listbox event should I use to set scroll position

on my page, I have a list in the refresh panel. I am successfully catching the scroll position, but when the refresh bar is refreshed, I am having trouble finding a suitable javascript event in which to call my function to set the scroll position. Any ideas?

I was really hoping that "onAfterUpdate" would work, but no ...

+2


source to share


1 answer


After the request is complete and the UpdatePanel is complete, you can click on the PageRequestManager and run your own delegate:



<script type="text/javascript" language="javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

function EndRequestHandler(sender, args)
{
   //your code here
}
</script>

      

0


source







All Articles