Hello,
I sucessfully added a radtooltip to a RadList control by using the ItemDataBound event using this code in the page:
And this in the code behind
I tried to adapt this code for a RadComboBox on the same page, but no ToolTip is shown.
Is there a step that I am missing? The ClientID for the item when I add a breakpoint is something like "i0" which doesn't seem long enough.
Thank you for your help
Paul Herzberg
I sucessfully added a radtooltip to a RadList control by using the ItemDataBound event using this code in the page:
<telerik:RadToolTipManager ID="radToolTipManager1" runat="server" HideEvent="LeaveTargetAndToolTip" Width="250" Height="100" RelativeTo="Element" Position="MiddleRight" ShowDelay="500" > <WebServiceSettings Method="GetToolTipData" Path="~/Services/ToolTipWebService.asmx" /> </telerik:RadToolTipManager>
And this in the code behind
The value is an ID that can be used to return a list from the webservice (in this case a list of Departments the hovered over person works for).void RadListBoxSource_ItemDataBound(object sender, RadListBoxItemEventArgs e) { if (e.Item is RadListBoxItem) { this.radToolTipManager1.TargetControls.Add(e.Item.ClientID, (e.Item as RadListBoxItem).Value, true); } }
I tried to adapt this code for a RadComboBox on the same page, but no ToolTip is shown.
void ddPerson_ItemDataBound(object sender, RadComboBoxItemEventArgs e) { if (e.Item is RadComboBoxItem) { this.radToolTipManager1.TargetControls.Add(e.Item.ClientID, (e.Item as RadComboBoxItem).Value, true); } }
Is there a step that I am missing? The ClientID for the item when I add a breakpoint is something like "i0" which doesn't seem long enough.
Thank you for your help
Paul Herzberg