I am using the RadToolTipManager in conjunction with a RadListView and they work on intital page load but on postback the ToolTips do not show up and the OnAjaxUpdate never fires. I update the RadListView from form controls outside the RadListView and on postback I add the TargetControls as follows
I also make sure to clear the TargetControls collection before rebinding the RadListView and have verified that they are removed and the new controls are added and the TargetControls collection has the correct elements.
In addition I have my RadAjaxManager setup as follows
Is there something I am missing that would cause this behavior on postback?
if (e.Item.ItemType == RadListViewItemType.DataItem || e.Item.ItemType == RadListViewItemType.AlternatingItem) |
{ |
Control toolTipBtn = e.Item.FindControl("btnView"); |
if (!Object.Equals(toolTipBtn, null)) |
{ |
if (!Object.Equals(this.RadToolTipManager1, null)) |
{ |
this.RadToolTipManager1.TargetControls.Add(toolTipBtn.ClientID, (e.Item as RadListViewDataItem).GetDataKeyValue("ProductID").ToString(), true); |
} |
} |
} |
I also make sure to clear the TargetControls collection before rebinding the RadListView and have verified that they are removed and the new controls are added and the TargetControls collection has the correct elements.
In addition I have my RadAjaxManager setup as follows
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="radioSizes"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadListView1" |
LoadingPanelID="RadAjaxLoadingPanel1" /> |
<telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="shipOptions"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadListView1" |
LoadingPanelID="RadAjaxLoadingPanel1" /> |
<telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="RadComboBox1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadListView1" |
LoadingPanelID="RadAjaxLoadingPanel1" /> |
<telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="RadListView1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadListView1" |
LoadingPanelID="RadAjaxLoadingPanel1" /> |
<telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
Is there something I am missing that would cause this behavior on postback?