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

same tooltips for other pages

5 Answers 48 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
na
Top achievements
Rank 1
na asked on 12 Feb 2009, 01:20 PM
Hi i have a radgrid in VS2008. i set up tooltipmanager on it that loads a detailsview control and it works fine for all the records on the first page. When i move to the other pages, the tooltip always shows the detailview correspond to page one records.
I am using this tooltip in content page.  


here is my code

 

    Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate
        Me.UpdateToolTip(e.Value, e.UpdatePanel)
    End Sub
    Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)
        Dim ctrl As Control = Page.LoadControl("UserControlDetails.ascx")
        panel.ContentTemplateContainer.Controls.Add(ctrl)
        Dim UserDetails As UserControlDetails = DirectCast(ctrl, UserControlDetails)
        UserDetails.UserIDGUID = elementID
    End Sub
    Private Sub RadGridUsers_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridUsers.ItemDataBound
        If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then
            Dim target As Control = e.Item.FindControl("targetControl")
            If Not [Object].Equals(target, Nothing) Then
                If Not [Object].Equals(Me.RadToolTipManager1, Nothing) Then
                    Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
                    Me.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row("unique_identifier").ToString(), True)
                End If
            End If
        End If
    End Sub

    Private Sub RadGridUsers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridUsers.ItemCommand
        If e.CommandName = "Sort" OrElse e.CommandName = "Page" Then
            RadToolTipManager1.TargetControls.Clear()
        End If
    End Sub

 

 

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 16 Feb 2009, 04:25 PM
Hello,
The code that you have provided looks correct. This, together with the fact that our Update TargetControls collection with AJAX demo works as expected, leads me to believe that there is something specific to your setup that leads to the problem. Could you please make sure that you update the RadToolTipManager when you change the page of the RadGrid (e.g. the manager is in the same UpdatePanel as the grid)?

In case this information does not help you, please prepare and send me a simple running project with which I can reproduce the problem locally.

Greetings,
Tsvetie
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
na
Top achievements
Rank 1
answered on 17 Feb 2009, 05:49 AM

Hello,
You were absolutely right. I wasn't updating the tooltipmanager in the Ajaxmanager proxy control. I added it and it started working fine.

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> 

 

 

    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGridUsers"> 

 

 

            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridUsers" />

 

 

                <telerik:AjaxUpdatedControl ControlID="RadTooltipManager1" />
            </UpdatedControls>

 

 

 

     </telerik:AjaxSetting> 

 

 

    </AjaxSettings>

 

</telerik:RadAjaxManagerProxy>

 

 

 

Since you fixed one of my main problem, i have another minor problem that is I can't add controls in the RadAjaxManagerProxy control using it's graphical window. I have to do it in the markup. I am using master/content pages and RadAjaxManager is placed in the master page. When i open the configure ajax manager in my content page, i see only one item "controls:" in the left most column and nothing else.

 

 

 

0
Iana Tsolova
Telerik team
answered on 17 Feb 2009, 09:59 AM
Hi,

Could you provide some further information on your web site configuration?
  • What is your .NET version?
  • What is the version of the Visual Studio you are using for developing?

Any additional details might help us in finding a proper solution for you.

Sincerely yours,

Iana
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
na
Top achievements
Rank 1
answered on 17 Feb 2009, 01:48 PM
I am using .Net 3.5 in VS 2008
radcontrols Q2 2008
0
Iana Tsolova
Telerik team
answered on 18 Feb 2009, 11:53 AM
Hello,

Thank you for the additional information.

Indeed, the issue you are facing is due to a bug introduced in VisualStudio 2008. If you update to Visual Studio 2008 SP1 and .NET 3.5 SP1, you will not experience this anymore.

Further information is available here.

I hope this helps.

Greetings,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
na
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
na
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or