tooltip shows always same content

2 posts, 0 answers
  1. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 28 Nov 2011 Link to this post

    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")
               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
  2. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 29 Nov 2011 Link to this post

    ok ok
    I have just seen the right thread here
    working now
Back to Top