This is a migrated thread and some comments may be shown as answers.

OnTransfer sends to tope of page or throws error

1 Answer 22 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Emily
Top achievements
Rank 1
Emily asked on 05 Mar 2013, 04:13 PM
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!

1 Answer, 1 is accepted

Sort by
0
Emily
Top achievements
Rank 1
answered on 07 Mar 2013, 12:29 PM

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

Tags
Filter
Asked by
Emily
Top achievements
Rank 1
Answers by
Emily
Top achievements
Rank 1
Share this question
or