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

ScriptManagerProxy Problem

6 Answers 331 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 12 May 2009, 04:43 PM
Hi.

I´ve been looking for a solution to my problem for 2 days with no success, I hope anyone can hlep me.


I´m migrating the Telerik Controls 2006 to Q1 2009.

I´ve got to have a scriptmanager in mainpage.aspx, no it´s not a masterpage, why? I don´t know. It wasn´t me that did the apllication i´m just working on the migration.
Has I was saying I´ve got to have a scriptmanager because I have a RadAjaxPanel in the page and also because I have a asmx to lead with.

I load dynamically usercontrols on pageload of the mainpage.aspx.

When I tried to change a radtab from telerik 2006 to Q1 2009, things go well if I had to my usercontrol client-side a scriptmanager.

But since I´ve got already one in mainpage.aspx I got that error that everybody knows "Can only have one scriptmanager per page".

I take the scriptmanager from usercontrol and the error stops but if I click on the radtab it doesn´t fire the event buttonckick has expected.

What am I missing????

Here goes my client-code of mainpage.aspx

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="main_page1.aspx.vb" Inherits="NewsletterNet.Main_page1"
    ValidateRequest="false" SmartNavigation="False" %>
<%@ Register TagPrefix="ahc" Namespace="Altinoren.HTMLControls" Assembly="Project_ShowHideButton" %>
<%@ Register TagPrefix="abw" Namespace="Altinoren.HTMLControls.BrowserWindow" Assembly="Project_BrowserWindow" %>
<%@ Register TagPrefix="eeekSoft" Namespace="EeekSoft.Web" Assembly="Project_EeekSoft.Web.PopupWin" %>
<%@ Register TagPrefix="internal" TagName="PageHeader" Src="~/UserControls/PageHeader.ascx" %>
<%@ Register TagPrefix="internal" TagName="MainMenu" Src="~/UserControls/MainMenu.ascx" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.WebControls" Assembly="RadWindow.Net2" %>
<%--<%@ Register TagPrefix="internal" TagName="SideBar" Src="~/UserControls/SideBar.ascx" %>--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head runat="server">
<telerik2009:RadCodeBlock ID="RadCodeBlock1" runat ="server" >
    <title>
        <%=app_title%>
    </title>
    <meta content="<%= app_email %>" name="Title">
    <meta content="<%= app_keywords %>" name="Keywords">
    <meta content="<%= app_email %>" name="Description">
    <meta content="<%= app_email %>" name="OWNER">
    <meta content="Microsoft Visual Studio.NET 7.1" name="GENERATOR">
    <meta content="Visual Basic 7.1" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

    <script src="public/js/jquery-1.3.1.js" type="text/javascript"></script>

    <script src="public/js/jquery-ui-1.6rc6.js" type="text/javascript"></script>

    <link href="public/css/ui.all.css" type="text/css" rel="stylesheet">
    <link href="service/Styles/UserCalendar.css" type="text/css" rel="stylesheet">
    </telerik2009:RadCodeBlock>
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager id="scriptManager" runat="server">
        <Services>
            <asp:ServiceReference path="~/UserControls/Scheduler/SchedulerScriptService.asmx" />
        </Services>
    </asp:ScriptManager>

     <telerik:RadWindowManager ID="Singleton"  VisibleOnPageLoad="true" SkinID="Default"
        runat="server" EnableViewState="False">
        <Windows>
            <telerik:RadWindow ID="Splash" Splash="true" runat="server" />
        </Windows>
    </telerik:RadWindowManager>
   
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
      <tr>
        <td>
            <internal:PageHeader ID="PageHeader" runat="server" />&nbsp;
        </td>
      </tr>
      <tr>           
        <td >
            <div style="float: right; display: none;">
                <p>
                    <asp:HyperLink ID="hl_DemoVersion" runat="server" EnableViewState="False" ImageUrl="service/res/bt_DemoVersion.jpg" />
                    <asp:HyperLink ID="hl_scheduler" runat="server" ImageUrl="service/res/bt_scheduler.jpg" />
                    <asp:HyperLink ID="hl_page_ICON" runat="server" EnableViewState="False" ImageUrl="service/res/bt_home.jpg" />
                </p>
            </div>
        </td>
      </tr>
      <tr>
        <td>
       
            <div class="Authentication">
               
                    <asp:HyperLink ID="hl_user_label" runat="server" Font-Size="10px" ForeColor="White">Welcome </asp:HyperLink>
                    <asp:HyperLink ID="hl_user_name" runat="server" Font-Size="10px" ForeColor="White"
                        Font-Bold="True">Admin</asp:HyperLink>
                    <asp:Label ID="lbPemissions" runat="server" Font-Size="10px" ForeColor="#FFFF80"></asp:Label>
               
            </div>
        </td>         
      </tr>
      <tr>
        <td>
            <div class="Toolbar">
                <internal:MainMenu ID="mainMenu" runat="server" EnableViewState="false" />
            </div>
        </td>
      </tr>
      <tr>
        <td>
            <telerik2009:RadAjaxPanel ID="PanelHelp" runat="server" EnableOutsideScripts="True" Width="100%" Visible="false">
                <div class="MainLeftHeader">
                    <asp:Label ID="lbmenu_label" runat="server" CssClass="SectionTitle" Text="Menu" />
                </div>
                <div class="MainRightHeader" style="display:none;">
                    <table id="Table4" cellspacing="0" cellpadding="0" width="100%" height="100%">
                        <tr>
                            <td valign="bottom">
                                <asp:PlaceHolder ID="PlaceholderMyOffice" runat="server" Visible="False" EnableViewState="False" />
                            </td>
                            <td align="right" valign="middle">
                                <asp:Label ID="lbScheduler_label" runat="server"></asp:Label>
                                <asp:Button ID="ShowHideButtonHelp" runat="server" Font-Size="11px" ForeColor="Navy"
                                    Font-Bold="True" Text="Show Help" />
                                <abw:BWImageButton ID="BWImageButtonHelp" runat="server" SkinID="HelpIcon_32" NavigateUrl="login.aspx"/>
               
                            </td>
                        </tr>
                        <tr>
                            <td valign="bottom" colspan="2">
                                <asp:Label ID="lbHelp" runat="server" Visible="False" Font-Size="12px" ForeColor="#404040">This is my Help</asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </telerik2009:RadAjaxPanel>
        </td>
      </tr>
    </table>
   
     
   
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr >
            <td class="MainLeftColumn" colspan="200">
               
              
                <asp:Panel ID="PanelQuickInfo" SkinID="PanelQuickInfo" runat="server" style="width: 100%;">
                    <div class="PanelQuickInfoTitle">
                        <asp:Image ID="hl_messaging_icon" runat="server" SkinID="InformationIcon"/>
                        <asp:HyperLink ID="hl_messaging_label" runat="server" EnableViewState="False" Text="&nbsp;Quick Info" />
                    </div>
                    <div class="PanelQuickInfoAlternateRow">
                        <asp:Image ID="Image1" runat="server" SkinID="SubscriberIcon" EnableViewState="False" />
                        <asp:HyperLink ID="hlSubscribers" runat="server" EnableViewState="False" Text="100 users in 8 mailing lists" />
                    </div>
                    <div class="PanelQuickInfoRow">
                        <asp:Image ID="Image5" runat="server" SkinID="CheckmarkIcon" EnableViewState="False" />
                        <asp:HyperLink ID="hlPneding" runat="server" EnableViewState="False" Text="100 users in 8 mailing lists" />
                    </div>
                    <div class="PanelQuickInfoAlternateRow">
                        <asp:Image ID="Image2" runat="server" SkinID="UserIcon" EnableViewState="False" />
                        <asp:HyperLink ID="hlMailinglists" runat="server" EnableViewState="False" Text="1 mailing list" />
                    </div>
                    <div class="PanelQuickInfoRow">
                        <asp:Image ID="Image4" runat="server" SkinID="CampaignsIcon" EnableViewState="False" />
                        <asp:HyperLink ID="hlCampaigns" runat="server" EnableViewState="False" Text="10 Newsletters / 1 sent" />
                    </div>
                    <div class="PanelQuickInfoAlternateRow">
                        <asp:Image ID="Image3" runat="server" SkinID="NewsletterIcon" EnableViewState="False" />
                        <asp:HyperLink ID="hlNewsletters" runat="server" EnableViewState="False" Text="10 Newsletters / 1 sent" />
                    </div>
                    <div class="PanelQuickInfoRow">
                        <asp:Image ID="Image6" runat="server" SkinID="QueueIcon" EnableViewState="False" />
                        <asp:HyperLink ID="hl_Queue" runat="server" EnableViewState="False" Text="10 Newsletters / 1 sent" />
                    </div>
                    <div class="PanelQuickInfoAlternateRow">
                        <asp:Image ID="Image7" runat="server" SkinID="DatabaseIcon" EnableViewState="False" />
                        <asp:HyperLink ID="Hyperlink1" runat="server" EnableViewState="False" Text="DB type:" />
                        <asp:HyperLink ID="hlDBType" runat="server" EnableViewState="False" Text="Sql Server" />
                    </div>
                </asp:Panel>
               
                <br />
                <br />
            </td>
            <td class="MainCenterColumn">
                <asp:Image ID="imSpcerColmn" runat="server" SkinID="Spacer" EnableViewState="False" />
            </td>
            <td class="MainRightColumn">
              
                    <asp:PlaceHolder ID="PlaceholderExtra" runat="server" Visible="False" />
                    <asp:PlaceHolder ID="PlaceHolder1" runat="server"/>
                    <a name="Pbottom">&nbsp;</a>
              
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td>
                <div class="Footer">
                    <asp:HyperLink ID="hl_copyright" runat="server" SkinID="Footer" NavigateUrl="http://www.agap2.com"
                        Text="AGAP2 Consulting" />

                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
<eeekSoft:PopupWin ID="PopupWin1" runat="server" Visible="False" Height="100px" DockMode="BottomRight"
    Style="width: 253px" />


server-code mainpage.aspx

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Try

            'Testes AINACIO
            'Response.Write("-->" & SessionVars.AdminSelectedCompanie)

            'Expiretion set in minutes
            'Response.Expires = 300 '3 hours
            'Try

            ApplyAppPersonalization()

            DebugMsg("")
            DebugMsg("::Main_page1 Loading ------------------------------/n")
            DebugMsg("::Main_page1 Reloading Postback:: " & Page.IsPostBack & "/n")
            DebugMsg("::Main_page1 Reloading RawUrl:: " & Request.RawUrl & "/n")

            'Initialize Database
            InitDB()
            SetMetaVars()

            'Init User Language Messages
            InitUserLanguage()

            'Init Encryption Key
            InitEncryptionKey()

            'User Authentication
            AuthenticateUser()

            'Set toolbar size
            SetToolbarSize()
            hl_DemoVersion.Visible = Not normalExec

            DebugMsg("::Demo mode is set to :: " & Not normalExec)

            Dim pn As New Assem
            hl_copyright.Text = app_copyright_link & " Version: " & pn.VersionMajor & "." & pn.VersionMinor & " Build: " & pn.VersionBuild

            'PlaceHolder Extra Implementation
            If Not Page.IsPostBack Then
                'If Request.QueryString("PlaceholderExtraVisible") = "true" Then
                '    Dim myControl As UserCalendar = Session(_myOfficeCalendar)
                '    PlaceholderExtra.Controls.Add(myControl)
                '    PlaceholderExtra.Visible = True
                'Else
                PlaceholderExtra.Visible = False
            End If
            'End If

            'Select The controls to plage in the page
            ApplyControls()

            'Show MyOfficeToolbar
            InitMyOfficeToolBar()

            ' Check scheduler status
            InitSchedulerMonitoring()

            'application specific items show or hide
            ApllicationSpecificSettings()

            'Set Help
            SetHelp()

            DebugMsg("::User is _user_admin :: " & Session(_user_admin))
            DebugMsg("::User is _user_superuser :: " & Session(_user_superuser))

            If Not normalExec Then
                'save web analytics
                Dim urlid As Integer = 0
                Try
                    urlid = Convert.ToInt32(Request.QueryString("url_id"))
                Catch ex As Exception

                End Try

                Dim st As Stats = New Stats(Session(_admin_Id), 0, Request.QueryString("Action"), Request.QueryString("Control"), urlid)
                Dim ddl As String = st.GetDdlInsert(ConvertSessionTodbType())
                Dim rowsAffected As Integer = cbo_ExecNonQuery(Session(_Conn_string), ddl)
            End If

            DebugMsg("::Main_page1 Loaded ------------------------------")
            DebugMsg("")
            'Catch ex As Exception
            '    DebugMsg("GENERAL ERROR:Exception" & ex.Message)
            '    Response.Redirect("Main_page1.aspx")
            'End Try

        Catch ex As Exception
            Response.Write("Exception::" & ex.Message & "<br>")
            Response.Write("StackTrace ::" & ex.StackTrace)
        End Try

    End Sub


Public Sub ApplyControls(Optional ByVal manuallyCalled As Boolean = False)
        Dim action As String = Request.QueryString("Action")
        Dim act_param As String = Request.QueryString("url_id")
        Dim Qcontrol As String = Request.QueryString("Control")

        Dim xmlConfigFileName As String = HttpContext.Current.Request.MapPath(HttpContext.Current.Request.ApplicationPath + disCore.Web.FrontEnd.WebPageBase.FrontEndConfigFile)
        Dim ap As disCore.Web.FrontEnd.ApplicationProvider = New disCore.Web.FrontEnd.ApplicationProvider(xmlConfigFileName, False)
        Dim currentDomain As String = HttpContext.Current.Request.ServerVariables("SERVER_NAME").ToLower
        Dim configFileName As String = ap.ApplicationSettings.GetConfigFielName(currentDomain)
        Dim sp As disCore.Web.FrontEnd.SessionProvider = New disCore.Web.FrontEnd.SessionProvider(configFileName, currentDomain, False)

        DebugMsg("")
        DebugMsg("::Main_page1 ApplyControls --------")
        DebugMsg("::Main_page1 ApplyControls action = " & action)
        DebugMsg("::Main_page1 ApplyControls act_param (url_id)  = " & act_param)
        DebugMsg("::Main_page1 ApplyControls Control = " & Qcontrol)

        ' rpereira 2009/01/19
        ' check if the logged user has permission to access the current link
        If LinkId > 0 AndAlso _
                Not BusinessRules.Security.Permissions.UserHasPermission(SessionVars.LoggedUserId, LinkId) Then

            Dim permissionsDeniedControl As PermissionsDenied = LoadControl("~/UserControls/Layout/PermissionsDenied.ascx")
            PlaceHolder1.Controls.Add(permissionsDeniedControl)

            Return
        End If

        Select Case action

            Case "SendCampaign"

                Dim mySendCampaign As SendCampaign = LoadControl("~/UserControls/Scheduler/SendCampaign.ascx")
                PlaceHolder1.Controls.Add(mySendCampaign)

            Case "ManageScheduler"

                'If Page.FindControl("manageSchedulerGroup") = Nothing Then

                '    Dim myManageSchedulerGroupsList As ManageSchedulerGroupsList = Me.LoadControl("~/UserControls/Scheduler/ManageSchedulerJobsList.ascx")
                '    myManageSchedulerGroupsList.ID = "manageSchedulerGroup"
                '    Me.PlaceHolder1.Controls.Add(myManageSchedulerGroupsList)

                'End If

                'Get the WebUserControl
                'Dim myManageSchedulerGroupsList As UserControl = CType(Page.FindControl("ManageSchedulerGroupsList"), UserControl)

                'Get user control's
                'Dim myRadTab = CType(myManageSchedulerGroupsList.FindControl("MainRT"), Telerik.Web.UI.RadToolBar)
                'Dim myRadGrid = CType(myManageSchedulerGroupsList.FindControl("MainRT"), Telerik.WebControls.RadGrid)

                'Add the necessary AJAX setting programmatically
                'RadAjaxManager1.AjaxSettings.AddAjaxSetting(myRadTab, myRadTab)

                Dim myManageSchedulerGroupsList As ManageSchedulerGroupsList = LoadControl("~/UserControls/Scheduler/ManageSchedulerGroupsList.ascx")
                PlaceHolder1.Controls.Add(myManageSchedulerGroupsList)

            Case "ManageSchedulerJob"

                Dim myManageSchedulerJobsList As ManageSchedulerJobsList = Me.LoadControl("~/UserControls/Scheduler/ManageSchedulerJobsList.ascx")
                PlaceHolder1.Controls.Add(myManageSchedulerJobsList)

            Case "ManageSchedulerError"
                Dim myManageSchedulerJobErrors As ManageSchedulerJobErrors = LoadControl("~/UserControls/Scheduler/ManageSchedulerJobErrors.ascx")
                PlaceHolder1.Controls.Add(myManageSchedulerJobErrors)

            Case "ManageSchedulerHistory"
                Dim myManageSchedulerHistory As ManageSchedulerJobHistory = LoadControl("~/UserControls/Scheduler/ManageSchedulerJobHistory.ascx")
                PlaceHolder1.Controls.Add(myManageSchedulerHistory)



The user control example

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ManageSchedulerGroupsList.ascx.vb"
    Inherits="NewsletterNet.ManageSchedulerGroupsList" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.WebControls" Assembly="RadGrid.Net2" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.WebControls" Assembly="RadComboBox.Net2" %>
<%@ Register TagPrefix="eeeksoft" Namespace="EeekSoft.Web" Assembly="Project_EeekSoft.Web.PopupWin" %>

<asp:ScriptManager id="scriptManager" runat="server" />
<table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="0">
    <tr>
        <td background="service/res/OtlBlueBar.gif" style="height: 20px">
 
              
    <telerik2009:RadToolbar ID="MainRT" runat="server" SkinID="Default" OnButtonClick="MainRT_OnClick">
        <Items>
            <telerik2009:RadToolBarButton runat="server" ID="StartGroup" ImageUrl="~/App_Themes/Default/Images/16x16/Start.gif"
                ButtonText="Start" ToolTip="Start a job group" />
            <telerik2009:RadToolBarButton runat="server" ID="PauseGroup"  ImageUrl="~/App_Themes/Default/Images/16x16/Pause.gif"
                ButtonText="Pause" ToolTip="Pause a job group" />
            <telerik2009:RadToolbarButton runat="server" ID="CancelGroup"  ImageUrl="~/App_Themes/Default/Images/16x16/Stop.gif"
                ButtonText="Cancel" ToolTip="Cancel a job group" />
            <telerik2009:RadToolBarButton IsSeparator="true" />
            <telerik2009:RadToolbarButton runat="server" ID="ApproveGroup" ButtonText="Approve" ToolTip="Approve a job group"  ImageUrl="~/App_Themes/Default/Images/16x16/Checked.gif" />
            <telerik2009:RadToolBarButton IsSeparator="true" />
            <telerik2009:RadToolbarButton runat="server" ID="ViewHistory" SkinID="HistoryButton"
                CommandName="ViewHistory" ButtonText="View history" ToolTip="View job group history"  ImageUrl="~/App_Themes/Default/Images/16x16/JobHistory.gif"/>
            <telerik2009:RadToolbarButton runat="server" ID="ViewErrors" ButtonText="View Errors" ToolTip="View errors associated with the group" ImageUrl="~/App_Themes/Default/Images/16x16/JobError.gif" />
            <telerik2009:RadToolBarButton IsSeparator="true" />
            <telerik2009:RadToolbarButton runat="server" ID="ResendJobButton" ImageUrl="~/App_Themes/Default/Images/16x16/Resend.gif" ButtonText="Resend" ToolTip="Resend a job group" />
        </Items>
    </telerik2009:RadToolbar>

            <asp:Label ID="lb_tableName" Font-Names="Arial" Font-Size="15px" Font-Bold="True"
                ForeColor="White" runat="server">Manage Scheduler</asp:Label>
        </td>
    </tr>
</table>
<div class="MainToolbar">
</div>
<div class="MainContent">
    <ajax:Accordion id="pnlOptions" runat="server" selectedindex="-1" autosize="None"
        headercssclass="AccordionHeader" headerselectedcssclass="AccordionHeaderSelected"
        fadetransitions="false" transitionduration="250" framespersecond="40" requireopenedpane="false"
        suppressheaderpostbacks="true">
        <Panes>
            <ajax:AccordionPane runat="server" HeaderCssClass="AccordionHeader" ContentCssClass="AccordionContent">
                <Header>
                    <asp:Image ID="imgFilterImage" runat="server" SkinID="ShowIcon" />
                    <asp:Label ID="lblFilterTitle" runat="server" SkinID="AccordionTitle" Text="Filter"/>
                </Header>
                <Content>
                    <asp:CheckBox ID="chbHideCanceledAndFinished" runat="server" AutoPostBack="True" Font-Size="11px" Text="Show only active groups" Checked="true" />
                </Content>
            </ajax:AccordionPane>
        </Panes>
    </ajax:Accordion>
    <telerik:RadGrid ID="gridJobs" runat="server" SkinID="Default" AutoGenerateColumns="False"
        AllowSorting="True" AllowMultiRowSelection="True" AllowFilteringByColumn="true"
        AllowPaging="True" GridLines="None">
        <ClientSettings ApplyStylesOnClient="True">
            <Selecting AllowRowSelect="True"></Selecting>
        </ClientSettings>
        <MasterTableView Name="Newsletters" DataKeyNames="GroupId,CampaignId,NewsletterId"
            runat="server">
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Resizable="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridClientSelectColumn CommandName="Select" UniqueName="ClientSelectColumn" />
                <telerik:GridTemplateColumn HeaderText="Campaign" Reorderable="true" SortExpression="CampaignName">
                    <ItemTemplate>
                        <asp:LinkButton ID="hypCampaignName" runat="server" Text='<%# Bind("CampaignName") %>'
                            CommandName="ViewDetail" CommandArgument='<%# Bind("GroupId") %>' />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="NewsletterTitle" HeaderText="Newsletter">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Status" HeaderText="Status">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="MessagesToSend" HeaderText="Messages to send">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="MessagesSent" HeaderText="Messages sent">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="MessagesWithError" HeaderText="Messages with error">
                </telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="DateToStart" HeaderText="To start at">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DateStarted" HeaderText="Started at">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DateFinished" HeaderText="Finished at">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</div>

<eeeksoft:PopupWin ID="popStatus" runat="server" Visible="False" Height="150px" Width="350px"
    DockMode="BottomRight" />

 

P.S - I´m changing control one at a time, so I don´t have to rollback like I did the first time I started to do the migration to the new controls. So expect to see telerik 2006 controls with telerik 2009 Q1 mixed.

Maybe that´s the problem.

Thank you in advanced.

6 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 15 May 2009, 08:48 AM
Hello Gabriel,

You need to replace the ScriptManager inside the user control with asp ScriptManagerProxy to avoid the exception you get when loading the pages. The ScriptManagerProxy control is recommended to be used in master pages/user controls scenarios when having single asp ScriptManager on the main master/content page.

Additionally, you can find detailed migration instructions for each control (under its individual chapter) in the RadControls for ASP,NET AJAX documentation. Here are the relevant articles for RadTabStrip, RadAjax and RadGrid:

http://www.telerik.com/help/aspnet-ajax/tab_overviewmigrating.html

http://www.telerik.com/help/aspnet-ajax/radajax%20for%20asp.net%20vs%20radajax%20prometheus.html

http://www.telerik.com/help/aspnet-ajax/grdmigrationtoprometheus.html

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jose Granja
Top achievements
Rank 1
answered on 19 Oct 2009, 12:47 PM
Hi!

I'm quite new in Telerik. My problem is related with ScriptManagerProxy. I have in my parent page a definition of a RadScriptManagerScript:

<telerik:RadScriptManager  runat="server" ID="RadScriptManager1"/>

I know I need to include in my user control page a definition of a ScriptManagerProxy so I get my Telerik components to work. I declare the ScriptManagerProxy as follows:

<asp:ScriptManagerProxy ID="RadScriptManager1" runat="server"/>

The thing is that I don't get any error or anything but I can see that the .js files ara not load because I can see my components being displayed (in particular a RadTabStrip) but the js is not working. It's simply not swtiching tabs.

If I put the RadTabStrip component in my parent page it works allright so the problem must be beeing placed in the User Control Page due that RadScriptManagerProxy is not doing anything.

could you give me some advice? I've been lost 1 day trying to figure out what is missing.

regards


jose







0
Veselin Vasilev
Telerik team
answered on 21 Oct 2009, 12:15 PM
Hi Jose Granja,

What happens if you delete the ScriptManagerProxy from the user control?
It should work since the parent page already has a RadScriptManager.

Regards,
Veselin Vasilev
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.
0
Jose Granja
Top achievements
Rank 1
answered on 21 Oct 2009, 12:31 PM
Hi! thank for the reply! I already took the proxyscriptmanager out of my control page but it's still not working... :S I don't know what can be causing the problem. The control is added like taht

<AdvancedInsertTemplate>
                            <scheduler:AdvancedForm runat="server" ID="AdvancedForm1"
                                Subject='<%# Bind("Subject") %>'
                                Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
                                IDAppointmentType='<%# Bind("AppointmentType") %>'
                                IDSelectedPatient = '<%# Bind("IDSelectedPatient") %>'
                                PatientName = '<%# Bind("PatientName") %>'
                                PatientTelephone = '<%# Bind("PatientTelephone") %>'
                                PatientMiddleNames = '<%# Bind("PatientMiddleNames") %>'
                                PatientSurname = '<%# Bind("PatientSurname") %>'
                                PatientDateOfBirth = '<%# Bind("PatientDateOfBirth") %>'
                                AddressType = '<%# Bind("AddressType") %>'
                                AddressPostCode = '<%# Bind("AddressPostCode") %>'
                                AddressCountryCode = '<%# Bind("AddressCountryCode") %>'
                                AddressCountry = '<%# Bind("AddressCountry") %>'
                                AddressTown = '<%# Bind("AddressTown") %>'
                                Address1 = '<%# Bind("Address1") %>'
                                IsEditPatient = '<%# Bind("IsEditPatient") %>'
                                IsNewPatient = '<%# Bind("IsNewPatient") %>'
                                IDPatientName = '<%# Bind("IDPatientName") %>'
                                IDPatientAddress = '<%# Bind("IDPatientAddress") %>'
                                IDPatientTelecom = '<%# Bind("IDPatientTelecom") %>'
                                />
                        </AdvancedInsertTemplate>
<AdvancedInsertTemplate>

and the control registered like that

<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="~/Views/Diary/AdvancedForm.ascx" %>




0
Veselin Vasilev
Telerik team
answered on 26 Oct 2009, 08:05 AM
Hi Jose Granja,

I believe the best way to proceed is to send us a sample running project where we can see the problem. You need to open a support ticket to do that.

All the best,
Veselin Vasilev
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.
0
Jose Granja
Top achievements
Rank 1
answered on 29 Oct 2009, 06:10 PM
Hi! I already solve the problem! The radscriptmanager was not working because I a validator was not set up properly! I wasn't getting an error at all but once I remove the validator everything is working fine! :) I don't know I wasn't getting any error at all that was really confusing :S

thx for the help anyway
Tags
Ajax
Asked by
Gabriel
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jose Granja
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or