OnAjaxUpdate programmatically

6 posts, 0 answers
  1. Andrea
    Andrea avatar
    64 posts
    Member since:
    Jan 2005

    Posted 25 Jun 2009 Link to this post

    Hi,

    why I cant define the OnAjaxUpdate RadToolTipManager method on server-side if I create the control programmatically?

    Dim rttm As New RadToolTipManager 
    rttm.ID = "rttElement" 
    rttm.TargetControls.Add(btnLinkElement.ClientID, "imagebtn"True
    rttm.TargetControls.Add(lnkBtnElement.ClientID, "hyplink"True
    rttm.HideEvent = ToolTipHideEvent.ManualClose 
    rttm.ShowEvent = ToolTipShowEvent.OnClick 
    rttm.ShowCallout = True 
    'rttm.OnAjaxUpdate="rttm_Update" 
    AddHandler rttm.WHERE IS?AddressOf rttm_Update 
     

    Thanks.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Jun 2009 Link to this post

    Hello Andrea,

    The ajax update event handler for RadToolTipManager is spelled AjaxUpdate  rather than OnAjaxUpdate.
    vb:
    Protected Sub Page_Load(sender As Object, e As EventArgs) 
          Dim rttm As New RadToolTipManager  
          rttm.ID = "rttElement"  
          rttm.TargetControls.Add(btnLinkElement.ClientID, "imagebtn"True)  
          rttm.TargetControls.Add(lnkBtnElement.ClientID, "hyplink"True)  
          rttm.HideEvent = ToolTipHideEvent.ManualClose  
          rttm.ShowEvent = ToolTipShowEvent.OnClick  
          rttm.ShowCallout = True  
          AddHandler rttm.AjaxUpdate, AddressOf rttm_AjaxUpdate  
    End Sub 
     
    Sub RadToolTipManager1_AjaxUpdate(sender As Object, e As ToolTipUpdateEventArgs) 
           'code here 
    End Sub 

    Hope that makes sense.
    -Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andrea
    Andrea avatar
    64 posts
    Member since:
    Jan 2005

    Posted 25 Jun 2009 Link to this post

    Thanks!!! Now I have another problem, this RadToolTipManager is linked to an hyperlink that is in a Ajaxified RadGrid CommandItem then the tooltip appears and immediatly disapperas! :(

    Best Regards
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 01 Jul 2009 Link to this post

    Hello Andrea,

    Would you please provide more details about the exact way you have ajaxified the grid? I case you have wrapped it in an asp update panel, please set UpdateMode="Conditional" for the panel and test again.

    In case this does not help, I would like to kindly ask you to open a new support ticket and attach a sample, fully runnable reproduction demo (use Northwind or a fake programmatic datasource for the grid) there along with detailed reproduction steps and explanations of the actual and the desired behavior and I will do my best to help.

    Kind regards,
    Svetlina
    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.
  6. Andrea
    Andrea avatar
    64 posts
    Member since:
    Jan 2005

    Posted 01 Jul 2009 Link to this post

    Hi,

    I'm using a RadAjaxManagerProxy because I have a master page.


    Best Regards.
  7. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 Jul 2009 Link to this post

    Hello Andrea,

    In this case I am afraid I cannot assume what is actually happening until I examine your setup. I would like to kindly ask you to prepare a simple, fully runnable reproduction demo (with as little code as possible), open a new support ticket and send it to me along with detailed reproduction steps and explanations of the actual and the desired behavior and I will do my best to help.

    Regards,
    Svetlina
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017