'in aspx page
<telerik:RadComboBox ID="RadComboPriority" runat="server" Width="280px" TabIndex="7" CssClass="blackText9" AllowCustomText="false"></telerik:RadComboBox>
'populating the RadComboBox on PageLoad
Public Sub LoadPriorities()
Dim description As String
Dim item As New RadComboBoxItem()
item.Text = ""
item.Value = 0
RadComboPriority.Items.Add(item)
Dim item1 As New RadComboBoxItem()
item1.Text = "1 - Immediate"
item1.Value = 1
description = "Use this code when you are not able to do your job."
ToolTipify(item1, description)
RadComboPriority.Items.Add(item1)
Dim item2 As New RadComboBoxItem()
item2.Text = "2 - Serious"
item2.Value = 2
description = "For when you are able to do your job, but you are limited by a problem."
ToolTipify(item2, description)
RadComboPriority.Items.Add(item2)
Dim item3 As New RadComboBoxItem()
item3.Text = "3 - Minor"
item3.Value = 3
description = "This code is used when you need help but can wait until the priority 1 and 2 work orders are handled first."
ToolTipify(item3, description)
RadComboPriority.Items.Add(item3)
End Sub
'adding tool tip to each item
Public Sub ToolTipify(ByVal item As RadComboBoxItem, ByVal description As String)
Dim tip As New RadToolTip()
item.Attributes.Add("ID", Guid.NewGuid().ToString())
tip.RelativeTo = ToolTipRelativeDisplay.Element
tip.Text = description
tip.TargetControlID = item.Attributes("ID")
tip.IsClientID = True
'tip.ShowEvent = ToolTipShowEvent.FromCode
'form1.Controls.Add(tip)
tip.VisibleOnPageLoad = True
tip.HideEvent = ToolTipHideEvent.LeaveToolTip
Me.Page.Form.Controls.Add(tip)
End Sub
I am unable to get the tool tips to display after the page has been posted back. Any help would be appreciated.
Thanks,
Cindy