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

Unable to load user control in Grid / User Control Edit Form

4 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Flea#
Top achievements
Rank 1
Flea# asked on 24 Apr 2010, 10:17 PM
Hello,

I am using the Grid / User Control Edit Form and when I click on the "Add new record" or try and edit an existing record, I am receiving a JavaScript error stating the following:

Message: Object doesn't support this property or method
Line: 178
File: ScriptResource.axd

In FireFox, when I debug the file, its errors out on this line of the ScriptResource.axd file:
c.get_request()._get_eventHandlerList()._list.completed.reverse(); 

This is the code for my Grid:

                                
                                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                                    <AjaxSettings> 
                                        <telerik:AjaxSetting AjaxControlID="RadGridAddress"
                                            <UpdatedControls> 
                                                <telerik:AjaxUpdatedControl ControlID="RadGridAddress" /> 
                                            </UpdatedControls> 
                                        </telerik:AjaxSetting> 
                                    </AjaxSettings> 
                                </telerik:RadAjaxManager> 
 <telerik:RadGrid ID="RadGridAddress"  
                                    runat="server"  
                                    GridLines="None"  
                                    AllowPaging="false" 
                                    AllowSorting="false"  
                                    AutoGenerateColumns="False"  
                                    ShowStatusBar="true"  
                                    Visible="true"  
                                    OnNeedDataSource="RadGridAddress_NeedDataSource" 
                                    MasterTableView-CommandItemSettings-RefreshText=""  
                                    MasterTableView-CommandItemSettings-AddNewRecordText="Add new address"
                                    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="Id"
                                        <Columns> 
                                            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"
                                            </telerik:GridEditCommandColumn> 
                                            <telerik:GridBoundColumn UniqueName="Address" HeaderText="Address" DataField="Address1"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="Address2" HeaderText="Address2" DataField="Address2"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="City" HeaderText="City" DataField="City"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="State" HeaderText="State" DataField="State"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="Zip" HeaderText="Zip" DataField="Zip"
                                            </telerik:GridBoundColumn> 
                                             <telerik:GridBoundColumn UniqueName="IsPrimary" HeaderText="Primary" DataField="IsPrimary"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete" /> 
                                        </Columns> 
                                        <EditFormSettings UserControlName="controls/Address.ascx" EditFormType="WebUserControl"
                                            <EditColumn UniqueName="EditCommandColumn1"
                                            </EditColumn> 
                                        </EditFormSettings> 
                                    </MasterTableView> 
                                </telerik:RadGrid> 

4 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 28 Apr 2010, 05:36 PM
Hi Michael,

This exception is not expected and I coud not spot anything wrong with your mark-up. Could you paste your whole mark-up and code-behind?

Thanks.

Best wishes,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Trent
Top achievements
Rank 2
answered on 06 May 2010, 01:27 AM
Hey guys I am having the same problem... has any one had a break through
0
Iana Tsolova
Telerik team
answered on 11 May 2010, 11:47 AM
Hello Trent,

Can you share the code you are using to load the desired user control? We will check it out and turn back to you with our findings.

Greetings,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Trent
Top achievements
Rank 2
answered on 11 May 2010, 04:01 PM
Hello guys thanks for your swift response, the issue has been resolved...

Resolution:

remove all Telerik Q1 2010 Script Managers and Ajax Managers and replace with <ajaxToolkit:ToolKitScriptManagers . for some reason all the telerik controls work better than expected when the AjaxManager is gone and an ajaxToolkit:ToolKitScriptManagers i used instead of RadScriptManager...

Oh and just a note for anyone else who has the same issue my solution was in the .Net 4.0 environment with the latest ajax control toolkit.

Cheers
Tags
Grid
Asked by
Flea#
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Trent
Top achievements
Rank 2
Iana Tsolova
Telerik team
Share this question
or