This is a migrated thread and some comments may be shown as answers.
Window not poping up after upgrade
1 Answer 23 Views
This is a migrated thread and some comments may be shown as answers.
Shehab
Top achievements
Rank 1
Shehab asked on 09 Dec 2008, 09:29 PM
Hello all,

Here is my HTML for a user control that is inside a radAjaxPanel in the default page...
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="PhysList.ascx.vb" Inherits="PhysList" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Button ID="btnPrint" runat="server" Text="Create PDF for printing" /><telerik:radgrid id="rgPhysician" runat="server" AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" OnSelectedIndexChanged="ViewPhysicianInfo" > 
    <MasterTableView DataKeyNames="PhysID">  
            <Columns> 
              <telerik:GridTemplateColumn UniqueName="TemplateColumn">  
                <ItemTemplate> 
                    <asp:LinkButton ID="btnViewPhysician" runat="server" CommandName="Select" Text="Select">Select</asp:LinkButton> 
                </ItemTemplate> 
              </telerik:GridTemplateColumn> 
              <telerik:GridBoundColumn DataField="PhysID" Display="False" HeaderText="PhysID" ReadOnly="True" UniqueName="PhysID">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="ContactType" Display="False" HeaderText="ContactType" 
                    ReadOnly="True" UniqueName="ContactType">  
              </telerik:GridBoundColumn>              
              <telerik:GridBoundColumn DataField="PhysFullName" HeaderText="Name" UniqueName="PhysFullName">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="PhysSpeciality" HeaderText="Speciality" UniqueName="PhysSpeciality">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="Office" HeaderText="Office" UniqueName="Office">  
              </telerik:GridBoundColumn> 
            </Columns> 
        <RowIndicatorColumn Visible="False">  
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn Visible="False">  
            <HeaderStyle Width="19px" /> 
        </ExpandCollapseColumn> 
    </MasterTableView> 
</telerik:radgrid> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="rgPhysician">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="rgPhysician" /> 
                            <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:radwindowmanager id="RadWindowManager1" runat="server" MinimizeZoneId="HorizontalMinimize" DestroyOnClose="True" Behavior="Maximize, Close, resize" Left="" Title="" Top="" Modal="True" Width="600px" Height="400px">  
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" runat="server" Left="" NavigateUrl="RadPhys.aspx" Title="Physician Information" Top="" /> 
        </Windows> 
</telerik:radwindowmanager> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px">  
    <img alt="Loading..." src="RadControls/Ajax/Skins/Default/loading.gif" style="border-right: 0px;  
        border-top: 0px; border-left: 0px; border-bottom: 0px" /> 
</telerik:RadAjaxLoadingPanel> 
And her is the VB for it:
Imports System.Collections  
Imports System.Data.SqlClient  
Imports System.Web.UI  
Imports System.Web.UI.WebControls  
Imports System.Web.UI.WebControls.WebParts  
Imports System.Web.UI.HtmlControls  
Imports System.Security.Principal  
Imports AjaxControlToolkit  
 
Partial Class PhysList  
    Inherits System.Web.UI.UserControl  
    Public dataConn As New PhoneBookDLL.dl  
 
    Protected Sub rgPhysician_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles rgPhysician.Init  
        Dim menu As GridFilterMenu = rgPhysician.FilterMenu  
        Dim i As Integer = 0  
        While i < menu.Items.Count  
            If menu.Items(i).Text = "NoFilter" Or menu.Items(i).Text = "Contains" Or menu.Items(i).Text = "EqualTo" Or menu.Items(i).Text = "StartsWith" Or _  
         menu.Items(i).Text = "EndsWith" Then 
                i = i + 1  
            Else 
                menu.Items.RemoveAt(i)  
            End If 
        End While 
    End Sub 
 
    Protected Sub rgPhysician_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgPhysician.NeedDataSource  
        Dim getDS As New DataSet  
        getDS = dataConn.PhoneActivePhys()  
        rgPhysician.DataSource = getDS.Tables(0).DefaultView  
    End Sub 
 
    Public Sub ViewPhysicianInfo(ByVal sender As ObjectByVal e As System.EventArgs) Handles rgPhysician.SelectedIndexChanged  
        Dim x As String = rgPhysician.MasterTableView.Items(rgPhysician.SelectedIndexes(0)).Item("PhysID").Text  
        Dim PhysID As String = rgPhysician.SelectedValue.ToString  
        RadWindowManager1.VisibleOnPageLoad = True 
        RadWindow1.NavigateUrl = "RadPhys.aspx?ID=" & PhysID  
    End Sub 
 
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
        RadWindowManager1.VisibleOnPageLoad = False 
        Page.Title = "Phonebook Physician Directory" 
        Dim url As String = "RptPhysician.aspx" 
        btnPrint.Attributes.Add("OnClick""window.open('" & url & "', title, 'top=0,left=0,height=570,width=787,scrollbars=yes,resizable=yes')")  
    End Sub 
 
End Class 
When I click on the Select in the RadGrid, I should be poped up with another page to show more details of the physician. That is how it used to work before and after I upgraded the dll files, it is giving me this error popup message whenever I click on the select button in the grid:
A control with ID 'PhysList$rgPhysician' could not be found for the trigger in UpdatPanel 'PhysList$rgPhysicianPanel'.

I searched for this error... but I couldn't find a solution for it.

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 11 Dec 2008, 01:26 PM
Hi Shehab,

Thank you for contctaing us.

I reviewed your code and noticed that you have RadAjaxManager into your UserContol. As you noted the UserControl is loaded into RadAjaxPanel on the main page. Please note that adding RadAjaxManager into RadAjaxPanel control is not suported sceanrio.
There are some known issues when using both the manager and the panel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) in the master/main page and RadAjaxManagerProxy control in the UserControl could handle all the scenarios.
For more information on this matter please review the following help topic.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Shehab
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or