Hello,
Im having a problem using a ToolTip in a Radgrid that has paging enabled. Everything works fine on the first page, but just fails to work at the other pages. I have tried several things like checking the itemIndex + pagesize and on what i currently am.
I can not supply all the code, but this should do it. Its about the tooltip manager i think. ItemDataBound triggers the FillData.
Im pretty sure its a small thing i am missing.
Ive also used this around it.
The OnAjaxUpdate works fine since it works on the first page of the grid.
Im having a problem using a ToolTip in a Radgrid that has paging enabled. Everything works fine on the first page, but just fails to work at the other pages. I have tried several things like checking the itemIndex + pagesize and on what i currently am.
I can not supply all the code, but this should do it. Its about the tooltip manager i think. ItemDataBound triggers the FillData.
private void FillData(GridItem repItem) { if (repItem.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem || repItem.ItemType == Telerik.Web.UI.GridItemType.Item) { NameView nameView= (NameView) repItem.DataItem; pnlImage.ID = nameView.Id.ToString(); if (this.EnableMouseOver) { tooltipManager.TargetControls.Add(pnlImage.ClientID, nameView.Id.ToString(), true); } } } }Im pretty sure its a small thing i am missing.
Ive also used this around it.
if (_itemIndex >= (_currentPage * repItem.OwnerTableView.PageSize)) { if (this.EnableMouseOver) { tooltipManager.TargetControls.Add(pnlImage.ClientID, nameView.Id.ToString(), true); }} _itemIndex++;The OnAjaxUpdate works fine since it works on the first page of the grid.
<telerikAjax:RadToolTipManager ID="tooltipManager" runat="server" AnimationDuration="300" Animation="Fade" ShowDelay="500" EnableShadow="true" HideDelay="1" Position="TopRight" ShowCallout="false" RelativeTo="Element" OnAjaxUpdate="OnAjaxUpdate" Width="372px" Height="330px" OnClientBeforeShow="clientBeforeShow"></telerikAjax:RadToolTipManager>