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

Rad Grid Looses on scroll event in chrome

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rafal
Top achievements
Rank 1
Rafal asked on 29 Sep 2011, 07:06 PM
Hi,

I've ran into a peculiar issue where a radgrid will loose its onscroll event in chrome (will not page). This happens when the grid is initially wrapped in a div with display="none". After a post back I convert that div into a jquery dialog. If the grid was visible before the postback (div was set to display="block") it will open up and initialize correctly in the jquery dialog, if it was not visible before the post back it will not initialize correctly and will not page when you scroll to the bottom of its page.

Basically it seems like the grid refuses to initialize in chrome when not visible. This works in FF and IE without any issues.

Does anybody have any ideas?

Thanks!
Rafal

edit1: you actually do not need to open it in a jquery dialog. Performing and asynchronous post back to load information and then making it visible will show the issue

1 Answer, 1 is accepted

Sort by
0
Rafal
Top achievements
Rank 1
answered on 29 Sep 2011, 07:10 PM
function OpenDialog()
       {
           $("#testDialog").dialog({
               autoOpen: false,
               modal: true,
               resizable: false,
               scrollable: true,
               
               width: "950px"
 
           });   
           $("#testDialog").dialog("open");
           $("#testDialog").parent().appendTo($("form:first"));
 
       }
<div id="testDialog" style="display:none;">
        
           
    <telerik:RadAjaxPanel  ID="ajaxPanel" OnAjaxRequest="AjaxPanel_AjaxRequest" ClientEvents-OnResponseEnd="ResponseEnd" runat="server">   
 
                PUT A RAD GRID HERE
 
        </telerik:RadAjaxPanel>
         
</div>     
Tags
Grid
Asked by
Rafal
Top achievements
Rank 1
Answers by
Rafal
Top achievements
Rank 1
Share this question
or