Hi,
First of all, sorry for posting so many threads with questions. I have been a subscriber for a couple of years but only recently started using Rad controls in a lot of projects and Ajax and Prometheus are still confusing me.
I have a datalist in my application (which is inside an updatepanel), which shows comments about photos. I have used your examples to try to add a tooltip into each item, attached to a linkbutton control. My code is as follows.....
I have removed about 80% of the html which I don't think is relevant to the problem.
Unfortunately when the page loads I get the following error in an alert box ....
Line: 3057
Char: 12
Error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: Element
Code: 0
Am I just doing something silly ? Or have I discovered a bug ?
I'm guessing I'm just doing something very stoopid :)
First of all, sorry for posting so many threads with questions. I have been a subscriber for a couple of years but only recently started using Rad controls in a lot of projects and Ajax and Prometheus are still confusing me.
I have a datalist in my application (which is inside an updatepanel), which shows comments about photos. I have used your examples to try to add a tooltip into each item, attached to a linkbutton control. My code is as follows.....
Sub Photos_Bound(ByVal obj As Object, ByVal e As DataListItemEventArgs) | |
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then | |
Dim link As LinkButton = DirectCast(e.Item.FindControl("lb_ViewComments"), LinkButton) | |
Dim tooltip As RadToolTip = DirectCast(e.Item.FindControl("CommentToolTip"), RadToolTip) | |
tooltip.TargetControlID = link.ClientID | |
tooltip.IsClientID = True | |
End If | |
End Sub |
<asp:UpdatePanel ID="PhotoPanel" runat="server"> | |
<ContentTemplate> | |
<asp:DataList CellSpacing="8" ID="DL_Photos" OnItemCommand="PhotoCommand" OnItemDataBound="Photos_Bound" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" CssClass="GalleryTable"> | |
<ItemStyle CssClass="GalleryPhoto" /> | |
<ItemTemplate> | |
<div class="PhotoInner"> | |
<img src="<%# Files + DataBinder.Eval(Container.DataItem, "Thumbnail")%>" /> | |
<asp:Linkbutton ID="lb_ViewComments" runat="server"><b><%# DataBinder.Eval(Container.DataItem, "CommentCount")%> comments</b></asp:Linkbutton> | |
</span> | |
<telerik:radtooltip runat="server" id="CommentToolTip" Sticky="true" ManualClose="true" Title="Just Testing" ShowEvent="OnClick" Skin="Web20" RelativeTo="Element" Width="350px" Height="250px" Position="MiddleRight" OffsetX="6" ></telerik:radtooltip> | |
</div> | |
</div> | |
</ItemTemplate> | |
</asp:DataList> | |
</ContentTemplate> | |
</asp:UpdatePanel> |
I have removed about 80% of the html which I don't think is relevant to the problem.
Unfortunately when the page loads I get the following error in an alert box ....
Line: 3057
Char: 12
Error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: Element
Code: 0
Am I just doing something silly ? Or have I discovered a bug ?
I'm guessing I'm just doing something very stoopid :)