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

tooltip shows always same content

1 Answer 51 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Jean-Marc
Top achievements
Rank 1
Jean-Marc asked on 28 Nov 2011, 12:12 PM
Hi, my scenario is just like this telerik example
summaring.. on radgrid ItemDataBound (so for every row button control of the grid) I attach a tooltip to the control button
myDBindex = getWordIndex(AppID, myserv.Name, defaultLang)
  mycontrol = CType(dataitem("Name").FindControl("btn_DictionaryName"), Button)
  mycontrol.OnClientClick = String.Format("OpenDictionary('{0}', '{1}','{2}','{3}','{4}','{5}');", myDBindex, defaultLang, tblName, "IDSPAService", myIDSpaService, "Name")
Me.RadToolTipManager1.TargetControls.Add(mycontrol.ClientID, myDBindex, True)

Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs)
           Me.UpdateToolTip(args.Value, args.UpdatePanel)
   End Sub
   Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)
           Dim ctrl As Control = Page.LoadControl("/FrontEndASCX/Dictionary/Dictionary.ascx")
           panel.ContentTemplateContainer.Controls.Add(ctrl)
           Dim myDict As ASP.GMDictionary = DirectCast(ctrl, ASP.GMDictionary)
 
           myDict.AppID = AppID
           myDict.IndexValue = elementID
           myDict.showSaveButton = False
   End Sub

and debugging it looks like it works like a charm, the ascx is called with right element value

Unfortunally, when the mouse is over my button control shows at first the tooltip with exact content, but then, when I move the mouse to another row, to another button control, ascx shows the same content (the first one)  though I can see, debugging, values passed are ok.

It has ajaxmanager as in the telerik example
I can't see why..
Thank you

1 Answer, 1 is accepted

Sort by
0
Jean-Marc
Top achievements
Rank 1
answered on 29 Nov 2011, 10:50 AM
ok ok
I have just seen the right thread here
working now
Tags
ToolTip
Asked by
Jean-Marc
Top achievements
Rank 1
Answers by
Jean-Marc
Top achievements
Rank 1
Share this question
or