This is a migrated thread and some comments may be shown as answers.

RadToolTipManager with ListView

3 Answers 76 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Peter Snyder
Top achievements
Rank 1
Peter Snyder asked on 29 Jun 2010, 07:55 PM
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

            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?


3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 02 Jul 2010, 09:55 AM
Hi Peter,

Your code seems to be correct and the only thing I can assume that might be causing the problem is that you do not call DataBind() for the ListView again after it is updated. If so, please make sure that you rebind it because Item_DataBound event is the one in which the tooltips get associated with the items.

In case this does not help, please prepare a simple fully runnable page (use a fake programmatic datasource if needed) and share its code here along with detailed reproduction steps and explanations. Once I am able to replicate your setup locally and to see the issue I will fix it and you will be then able to apply the same changes in your original demo.


Sincerely yours,
Svetlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Peter Snyder
Top achievements
Rank 1
answered on 12 Jul 2010, 05:15 PM
I will see if I can get the code together that you require.

However I should also note that I was able to resolve the problem and get the desired affect by using a single RadAjaxPanel wrapped around all of the components instead of the RadAjaxManager.
0
Svetlina Anati
Telerik team
answered on 15 Jul 2010, 09:20 AM
Hello Peter,

Basically, you can get the same result with RadAjaxManager and RadAjaxPanel and most probably some AJAX setting was missing in your previous manager implementation. I am glad that you were able to resolve the issue and in case you want to investigate it further or you have additional questions or problems, just contact us again with detailed reproduction information and we will do our best to help.


Sincerely yours,
Svetlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ToolTip
Asked by
Peter Snyder
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Peter Snyder
Top achievements
Rank 1
Share this question
or