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

JScript error with Visual Studio 2010 and framework 2.0

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dominic Bricault
Top achievements
Rank 1
Dominic Bricault asked on 25 Feb 2011, 07:00 PM
Hi,

We have migrate Visual Studio 2005 to Visual Studio 2010 recently but we have to keep the framework 2.0.
Now, we have some errors like "Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors."
The problem occur with Internet Explorer 8

We use RadControls for ASP.NET AJAX.

I will give you a specific example.
We have a master page with the script manager.
----------------------------------------------------
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
----------------------------------------------------
In the content page, we use a ModalPopupExtender in a child page when a user click on a button into a list.
When the button is click, we receive the error "Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors."

This is the code for the content page 
----------------------------------------------------
<telerik:RadAjaxPanel id="pnlPackage" runat="server">
                    <asp:Label ID="lblPopUpUsing" runat="server" Text="" CssClass="BlackArial10"></asp:Label>
                     <asp:Panel ID="pnlCopyPackage" runat="server" style="display:none">
                        <asp:Panel ID="pnlCopy" runat="server" CssClass="ModalWindowNoPadding" BackColor="White">
                          <uc:CopyPackageControl ID="copyPackageControl" runat="server" OnOnCopyPackage="copyPackageControl_OnCopyPackage"></uc:CopyPackageControl>
                        </asp:Panel>
                    </asp:Panel>


                    <cc2:ModalPopupExtender ID="CopyPackagePopupExt" runat="server" 
                        TargetControlID="lblPopUpUsing" 
                        PopupControlID="pnlCopyPackage" 
                        BackgroundCssClass="ModalBackground">
                    </cc2:ModalPopupExtender>
                    <cc3:SOFGrid ID="gdvPackages" runat="server"  AutoGenerateColumns="false" Skin="SOF" AllowCustomPaging="True"  
                                 PageSize="20" EnableEmbeddedSkins="false" AllowPaging="True" BorderWidth="0" BorderStyle="None" 
                                 AllowSorting="True" OnItemDataBound="gdvPackages_ItemDataBound" OnDeleteCommand="gdvPackages_DeleteCommand" 
                           OnModifyCommand="gdvPackages_ModifyCommand" OnSortCommand="gdvPackages_SortCommand"  
                           OnPageIndexChanged="gdvPackages_PageIndexChanged" OnPageSizeChanged="gdvPackages_PageSizeChanged" 
                           OnCopyCommand="gdvPackages_CopyCommand" 
                           AlternatingItemStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="Center">
                           
                           <HeaderStyle HorizontalAlign="Center" />
                            <AlternatingItemStyle HorizontalAlign="left" />
                            <ItemStyle HorizontalAlign="left" />   
                                                       
                           <MasterTableView CellSpacing="-1" TableLayout="Auto"  DataKeyNames="ConfigPackage_ID">
                           <ItemStyle cssclass="BlackArial10 BlueLineWithoutTop" HorizontalAlign="left"></ItemStyle>
                           <AlternatingItemStyle cssclass="BlackArial10 BlueLineWithoutTop" HorizontalAlign="left"></AlternatingItemStyle>
                               
                               <SortExpressions>
                                        <telerik:GridSortExpression FieldName="Description" SortOrder="Ascending" />
                                    </SortExpressions>
                                    <SortExpressions>
                                        <telerik:GridSortExpression FieldName="ConfigEnvironmentCode" SortOrder="Ascending" />
                                    </SortExpressions>
                                    <SortExpressions>
                                        <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
                                    </SortExpressions>
                                    <SortExpressions>
                                        <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
                                    </SortExpressions>
                               
                               <Columns>
                                         <telerik:GridBoundColumn ItemStyle-Width="30%" SortExpression="Name"  ForceExtractValue="Always" HeaderText="" UniqueName="Name" DataField="Name">
                                         <ItemStyle cssclass="BlackArial10Bold BlueLineWithoutTop"></ItemStyle>
                                         </telerik:GridBoundColumn>
                                    </Columns>
                                    <Columns>
                                         <telerik:GridBoundColumn ItemStyle-Width="30%" SortExpression="Description"  ForceExtractValue="Always" HeaderText="" UniqueName="Description" DataField="Description"></telerik:GridBoundColumn>
                                    </Columns>
                                    <Columns>
                                         <telerik:GridBoundColumn ItemStyle-Width="10%" SortExpression="ConfigEnvironmentCode"  ForceExtractValue="Always" HeaderText="" UniqueName="ConfigEnvironmentCode" DataField="ConfigEnvironmentCode"></telerik:GridBoundColumn>
                                    </Columns>
                                    <Columns>
                                          <telerik:GridTemplateColumn ItemStyle-Width="50%" SortExpression="DateModified" ItemStyle-HorizontalAlign="Left"   DataField="DateEnvironnement" UniqueName="DateEnvironnement">
                                            <ItemTemplate>
                                                <asp:label ID="lblConfigAssociatedServer" Runat="server" Text="*Server"></asp:label>
                                            </ItemTemplate>
                                          </telerik:GridTemplateColumn>
                                    </Columns>
                                    <Columns>
                                        <telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode" ConfirmDialogType="RadWindow" 
                                            ConfirmTitle="Copy"  ButtonType="ImageButton" CommandName="Copy" Text="Copy"
                                            UniqueName="CopyColumn" ShowInEditForm="False" ImageUrl="~\Image\icon_copy.gif">
                                            <ItemStyle CssClass="CursorHand CenterAlign" />
                                        </telerik:GridButtonColumn>
                                   <telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode" 
                                            ConfirmTitle="Modify"  ButtonType="ImageButton" CommandName="Modify" Text="Modify"
                                            UniqueName="ModifyColumn" ShowInEditForm="False" ImageUrl="~\Image\icon_edit.gif">
                                            <ItemStyle CssClass="CursorHand CenterAlign" />
                                        </telerik:GridButtonColumn>
                                   <telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode" ConfirmDialogType="RadWindow" 
                                            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                            UniqueName="DeleteColumn" ImageUrl="~\Image\icon_delete.gif">
                                            <ItemStyle CssClass="CursorHand CenterAlign" />
                                        </telerik:GridButtonColumn>
                                   </Columns>
                           </MasterTableView>
                           
                        <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="True" EnableRowHoverStyle="true">
                            <Scrolling  EnableVirtualScrollPaging="false" AllowScroll="false" UseStaticHeaders="false" />
                       </ClientSettings>
                                
                       <HeaderContextMenu EnableEmbeddedSkins="False"></HeaderContextMenu>
                       <FilterMenu EnableEmbeddedSkins="False"></FilterMenu>
                       
               </cc3:SOFGrid>
               </telerik:RadAjaxPanel>
----------------------------------------------------

Can anyone help me on this problem ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 03 Mar 2011, 10:25 AM
Hello Dominic,

Could you please confirm if the scenario works as expected if you replace the RadAjaxPanel with an UpdatePanel? If the issue persists, then the problem is not with our control and probably your ajax setup is incorrect. In this case you can review this blog post, having in mind that RadAjaxPanel itself renders an update panel on the page:
Using UpdatePanels with ModalPopups

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!
Tags
General Discussions
Asked by
Dominic Bricault
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or