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))
Next
listOfUsersInToolTip.Sort = RadListBoxSort.Ascending
listOfUsersInToolTip.SortItems()
RadToolTipManager.Width = "150"
RadToolTipManager.Height = "200"
e.UpdatePanel.ContentTemplateContainer.Controls.Add(listOfUsersInToolTip)
End If
Else
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"
e.UpdatePanel.ContentTemplateContainer.Controls.Add(label)
Exit For
End If
Next
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.
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))
Next
listOfUsersInToolTip.Sort = RadListBoxSort.Ascending
listOfUsersInToolTip.SortItems()
RadToolTipManager.Width = "150"
RadToolTipManager.Height = "200"
e.UpdatePanel.ContentTemplateContainer.Controls.Add(listOfUsersInToolTip)
End If
Else
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"
e.UpdatePanel.ContentTemplateContainer.Controls.Add(label)
Exit For
End If
Next
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.