RadToolTip Manager Control Changing Error

3 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 12 Jan 2011 Link to this post

    Code :

    Protected Sub RadToolTipmanager_AjaxUpdate(ByVal sender As Object, ByVal e As ToolTipUpdateEventArgs)
    Dim roleName As String = e.Value
            Dim listOfUsersInToolTip As New RadListBox
            Dim label As New Label
            listOfUsersInToolTip.Width = 150
            listOfUsersInToolTip.Height = 200
            If IsUserRole(e.Value) Then
                Dim usersList As ArrayList = rc.GetUserRolesByRoleName(DNN.GetPMB(Me).PortalId, roleName)
                If usersList.Count <> 0 Then
                    For Each user As DotNetNuke.Entities.Users.UserRoleInfo In usersList
                        listOfUsersInToolTip.Items.Add(New RadListBoxItem(user.FullName, user.UserID))
                    listOfUsersInToolTip.Sort = RadListBoxSort.Ascending
                    RadToolTipManager.Width = "150"
                    RadToolTipManager.Height = "200"

                End If
                For Each role As RadComboBoxItem In cmbRoleName.Items
                    If FindUserInRole(role.Text, e.Value) Then
                        label.Text = e.Value & " belongs to " & role.Text
                        RadToolTipManager.Width = "160"
                        RadToolTipManager.Height = "50"

                        Exit For
                    End If

            End If

    Error :

    RadToolTipManager response error:
     Exception=Sys.WebForms.PageRequestManagerServerErrorException: An error has occurred because a control with id 'dnn$ctr426$View$ctl00$ctl01' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.

  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 13 Jan 2011 Link to this post

    Hello Muhammad,

    I already answered your other thread and for your convenience and for others who might have the same problem I pasted my reply below:

     I am not completely sure what causes the error but I assume that the problem comes from the fact that you do not set an ID to the control you add and thus it takes automatic ID which seems to be the same for different controls. That is why I suggest to set a unique, different ID to the control before you add it to the tooltip manager panel, e.g similar to this:

    listOfUsersInToolTip.ID = Guid.NewGuid().ToString()

    Best wishes,
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 14 Jan 2011 Link to this post

    thanks it works ;)
Back to Top