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

Postback wihhin User control used to update a grid

3 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 15 Jun 2010, 07:13 PM
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Script control 'RadCounty' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControlMaster Page
    

--> Web page

 

<%@ Page Title="" Language="VB" MasterPageFile="~/Common/YALMasterPage.master" AutoEventWireup="false" CodeFile="TestPage.aspx.vb" Inherits="AATEST_TestPage" %> 
<%@ Register Src="~/UserControls/YALgridControl.ascx" TagName="TEST" TagPrefix="PT" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderHeader" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content3" ContentPlaceHolderID="ConPHLeftTop" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content4" ContentPlaceHolderID="ConPHLeftBottom" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content5" ContentPlaceHolderID="ConPHRightTop" Runat="Server">  
    Grid control goes here
</asp:Content> 


The grid control uses a user control to do updates

Within the user control, I have 2 controls that need to be connected (like State and county) so trying to connect the two with a AJAX update using AJAX manager

 

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadState">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadCounty" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 

When I select the combox box value I get the error

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Script control 'RadCounty' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControlMaster Page
    

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Jun 2010, 08:54 AM
Hello John,

The only thing I can assume without having your code for the mentioned controls is that you have missed to declare a ScriptManager before this control is added to the page (it should be on the very top of the main page). If so, please note that script controls should be registered in the ScriptManager and this is the most probable reason for this error. Another option is that you are adding this control in some event which is not suitable considering the page lifecycle but I cannot tell you the exact reason until I am able to see what is actually going on. Opening regular support ticket and sending us runnable application will help us provide more to-the-point solution.


Kind regards,
Maria Ilieva
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
John
Top achievements
Rank 1
answered on 22 Jun 2010, 12:30 PM
can you provide some code samples for registering controls wiht the script manager.  The control that I want to reister are radcomboboxes
0
Maria Ilieva
Telerik team
answered on 25 Jun 2010, 08:21 AM
Hello John,

Please refer to the following topic which elaborates on Scripting with ScriptManager. Review the provided information and let me know if this helps. 


Best wishes,
Maria Ilieva
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
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
John
Top achievements
Rank 1
Share this question
or