RadToolTipManager with ListView

4 posts, 0 answers
  1. Peter Snyder
    Peter Snyder avatar
    2 posts
    Member since:
    Apr 2010

    Posted 29 Jun 2010 Link to this post

    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?


  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 02 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter Snyder
    Peter Snyder avatar
    2 posts
    Member since:
    Apr 2010

    Posted 12 Jul 2010 Link to this post

    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.
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 15 Jul 2010 Link to this post

    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
Back to Top