Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > Browser (IE 7) script error when the page contains radgrids bounded to dataview
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Browser (IE 7) script error when the page contains radgrids bounded to dataview

Feed from this thread
  • Prasad avatar

    Posted on Mar 14, 2011 (permalink)

    I have IE 7 and fire fox in my system.

    My web page contains two radgrids which were bounded to their corresponding dataview.

    When I open the webpage through Fire Fox, it works.

    But when I open the webpage in my IE, it shows the following message - (please find the  attached)

    A script on this page is causing the Internet Explorer to run slowly.
    If it continues to run, your computer may become unresponsive.
    Attached files

  • Tsvetina Tsvetina admin's avatar

    Posted on Mar 17, 2011 (permalink)

    Hi Prasad,

    There should be no problem with binding your grid controls to DataView objects as long as you are binding them correctly. Can you please paste your grid mark-up and code-behind, so we can inspect them and see what might be causing the problem.

    Additionally, you posted the ticket in the RadInput forum, does this mean that you consider the problem to be related to any RadInput contorls on your page?

    Greetings,
    Tsvetina
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

  • Prasad avatar

    Posted on Mar 17, 2011 (permalink)

     <tr>
                                                    <td valign="top" style="width: 50%">
                                                        <telerik:RadGrid ID="radgrid1" runat="server" AutoGenerateColumns="False" AllowMultiRowSelection="True"
                                                            GridLines="Both" Width="400px" Height="200px">
                                                            <ClientSettings Selecting-AllowRowSelect="true">
                                                                <Scrolling AllowScroll="True" SaveScrollPosition="True" ScrollHeight="120px" UseStaticHeaders="True" />
                                                            </ClientSettings>
                                                            <MasterTableView >
                                                                <Columns>
                                                                    <telerik:GridClientSelectColumn UniqueName="cbSelected">
                                                                        <HeaderStyle Width="8%" />
                                                                        <ItemStyle Width="8%" BorderColor="Black" />
                                                                    </telerik:GridClientSelectColumn>
                                                                    <telerik:GridBoundColumn DataField="Name" HeaderText="heading" HeaderStyle-HorizontalAlign="Center"
                                                                        UniqueName="Name">
                                                                        <ItemStyle BorderColor="Black" CssClass="break-word" Width="95%" />
                                                                    </telerik:GridBoundColumn>
                                                                </Columns>
                                                            </MasterTableView>
                                                        </telerik:RadGrid>
                                                    </td>
                                                    <td valign="top" style="width: 50%">
                                                        <telerik:RadGrid ID="radgrid2" runat="server" AutoGenerateColumns="False"
                                                            AllowMultiRowSelection="True" GridLines="Both" Width="400px" Height="200px">
                                                            <ClientSettings Selecting-AllowRowSelect="true">
                                                                <Scrolling AllowScroll="True" SaveScrollPosition="True" ScrollHeight="120px" UseStaticHeaders="True" />
                                                            </ClientSettings>
                                                            <MasterTableView >
                                                                <Columns>
                                                                    <telerik:GridClientSelectColumn UniqueName="chkSelected">
                                                                        <HeaderStyle Width="8%" />
                                                                        <ItemStyle Width="8%" BorderColor="Black" />
                                                                    </telerik:GridClientSelectColumn>
                                                                    <telerik:GridBoundColumn DataField="Name" HeaderText="Heading" HeaderStyle-HorizontalAlign="Center"
                                                                        UniqueName="Name">
                                                                        <ItemStyle CssClass="break-word" Width="90%" BorderColor="Black" />
                                                                    </telerik:GridBoundColumn>
                                                                </Columns>
                                                            </MasterTableView>
                                                        </telerik:RadGrid>
                                                    </td>
                                                </tr>

             DataSet ds;
                ds = getdata();
     DataView dvw = new DataView(ds.Tables[0], " TypeId = 4 ", "", DataViewRowState.CurrentRows);
                radQuestion.DataSource = dvw;
                radQuestion.DataBind();





    Thanks,
    JnD.Prasad

  • Tsvetina Tsvetina admin's avatar

    Posted on Mar 18, 2011 (permalink)

    Hi Prasad,

    I would suggest you to first try binding the grid in the NeedDataSource event handler and not use the DataBind() method for this control anywhere on the page. Please see the following help article for more details and sample code:
    Advanced Data-binding (using NeedDataSource event)

    Regards,
    Tsvetina
    the Telerik team

  • rleast avatar

    Posted on May 18, 2011 (permalink)

    Hi Guys, This may or may not be the answer to this problem, but for others it maybe helpful. I had this problem too only with IE, not firefox or google when the grid was bound. My problem was unprintable chars in the data source. Firefox would indicate each instance of the char with a printable char (Don't recall which one but it stood out) within the row/column, while IE would just blow up. So for me I had to scrub such chars on the data side. Hope this helps.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > Browser (IE 7) script error when the page contains radgrids bounded to dataview