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

[Solved] onbeforeunload with GridView hangs browser

1 Answer 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sandy
Top achievements
Rank 1
Sandy asked on 02 Feb 2011, 08:28 PM
We have noticed this strange behavior when using the onbeforeunload javascript event. If you have a bound RadGridView, using the ItemsSource property, with just a single item in the grid, the browser will hang indefinitely under IE 9 and Safari 5 when you use the onbeforeunload javascript event.  WIth no items in the grid or when using Chrome everything works perfectly, Firefox 3.6.13 seems to hang but eventually returns but grinds to halt. If we comment out the RadGridView control everything works as expected. Are you aware of anything that might be causing this?  

below is the script code in the Default.aspx that we are using.
        window.onbeforeunload = function () {
            return 'unloaded';
        }

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Feb 2011, 04:35 PM
Hello,

 Can you try the regular DataGrid instead to see what will be the result? Can you post more info about RadGridView version? 

Best wishes,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Sandy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or