Hello all,
Here is my HTML for a user control that is inside a radAjaxPanel in the default page...
And her is the VB for it:
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.
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> |
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 Object, ByVal 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 Object, ByVal 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 Object, ByVal 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 Object, ByVal 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 |
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.