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

Javascript problem with more than one RadGrid on a page in Firefox

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ferdinand
Top achievements
Rank 1
Ferdinand asked on 29 Sep 2009, 08:12 AM
Hello,
I have a problem placing more than one RadGird in on a page.
Here is the scenario:
I am using the RadGrid to select data from my database. Therefore I created an UserControl with a RadGrid in it. The RadGrid is shown through a RadTooltip in Modal mode. Multiple data can be shown by the Grid because all columns are created from code behind. More than one of these UserControls on a page are possible and I use them like this anyway.
Here is the RadGrid definition:
<telerik:RadGrid ID="rgPickListData" runat="server" MasterTableView-NoMasterRecordsText="Keine Daten zum Anzeigen" 
                BorderStyle="None" AutoGenerateColumns="false" EnableViewState="true" AllowSorting="True" 
                Height="330" AllowPaging="true" PageSize="40" Width="97%" AllowMultiRowSelection="true"
                <PagerStyle Visible="false" /> 
                <MasterTableView OverrideDataSourceControlSorting="true" DataKeyNames="E_ID" /> 
                <ClientSettings EnableRowHoverStyle="true"
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />                     
                    <Selecting AllowRowSelect="True" /> 
                </ClientSettings> 
                <SortingSettings SortToolTip="Zum Sortieren hier klicken" EnableSkinSortStyles="true" /> 
            </telerik:RadGrid> 


So here is the problem:
If I place more than one of these UserControl on a page everything works fine in Internet Explorer. In Firefox I get a Javascript error.
Firebug shows the following errors:
this.get_element().tBodies[0] is undefined
}var c=this.get_element().tBodies[0].rows;\nTelerik....e:59462f1 (Zeile 10579)

If I remove the Scrollong tag from the ClientSettings the error does not appear.

I would like to use scrolling so are there any suggestions what to do?

Best regards
Ferdinand

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 02 Oct 2009, 06:37 AM
Hello Ferdinand,

Based on this information, it is hard to determine what is causing the unwanted behavior. If the issue persists, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and the unwanted exception. We will debug it locally, and get back to you with additional information.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Ferdinand
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or