OnTransfer sends to tope of page or throws error

2 posts, 0 answers
  1. Emily
    Emily avatar
    6 posts
    Member since:
    Mar 2013

    Posted 05 Mar 2013 Link to this post

    I am using radlistbox and I set AutoPostBackOnTransfer to false because when it was set to true, it was reloading the page everytime which sent the user to the top of the page. We obviously want the page not to move when clicking one of the transfer buttons. Is there another way to prevent this from happening? We have a submit button that allows the code to submit to the server without the AutoPostBackOnTransfer being set to true. However, there is an error (Index out of range) thrown when it sits too long before the submit button is clicked. Thanks!
  2. Emily
    Emily avatar
    6 posts
    Member since:
    Mar 2013

    Posted 07 Mar 2013 Link to this post

    I am not sure how to delete this thread, but I posted this general question in another area and I wanted to provide the answer incase anyone else needs it. Also, this way no needs to waste time answering a question I already have the answer to:) Thanks again Angel!

    Hi Emily,

     

    As I have previously explained setting AutoPostBackOnTransfer to false will cause an error as the ViewState of the ListBoxes will not update correctly. Since your requirements is to save the scroll position I suggest that you examine this <http://weblogs.asp.net/hosamkamel/archive/2007/09/07/maintain-scroll-position-after-postbacks-in-asp-net-2-0.aspx> online resource which should help you to resolve the problem.

     

    Kind regards,

    Angel Petrov

    the Telerik team

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top