<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
<%
@ Register TagPrefix="telerik" TagName="Header" Src="~/Common/Header.ascx" %>
<%
@ Register TagPrefix="telerik" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
<%
@ Register TagPrefix="telerik" TagName="Footer" Src="~/Common/Footer.ascx" %>
I also downloaded the Telerik Samples that come with the documentation and didn't find this example in samplels, but basically, i'm looking for TreeView - Checkbox example/s
Thanks very much for any pointers
| protected void RadGridCurrInvt_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem) |
| { |
| GridDataItem item = (GridDataItem)e.Item; RadComboBox RBCCurrInvtType = (RadComboBox)item.FindControl("RBCCurrInvtType"); |
| RBCCurrInvtType.DataSource = blCllAgt.getCurrentInvestmentType(); |
| RBCCurrInvtType.DataBind(); |
| } |
| } |
<telerik:RadGrid ID="RadGrid1" runat="server" OnItemDataBound="dgResults_OnItemDataBound" AutoGenerateColumns="false" EnableViewState="false" >
<MasterTableView>
<Columns>
<telerik:GridTemplateColumn>
<ItemTemplate>
<asp:ImageButton ID="imgbtnToggle" runat="server" CausesValidation="false" Visible='<%#Eval("IsTask").Equals(false) %>'
CommandArgument='<%#Eval("ResultId") %>' OnClick="ToggleTaskResults" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataType="System.Int32" DataField="JobId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataType="System.Int32" DataField="ResultId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataType="System.Boolean" DataField="IsTask">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
| <telerik:RadRotator runat="server" ID="RadRotator1" Width="270" Height="310"> |
| <ItemTemplate> |
| <asp:Image runat="server" ID="ImgRotator" Width="270" /> |
| </ItemTemplate> |
| </telerik:RadRotator> |
