Issue with RadToolTipManager's OnAjaxUpdate

4 posts, 0 answers
  1. Alex
    Alex avatar
    2 posts
    Member since:
    Jun 2013

    Posted 05 Nov 2015 Link to this post

    I am having an issue where RadToolTipManager does not come up in Chrome on IOS.  Nothing happens when I click on a button that triggers the action for displaying the tool tip.

    I have the following in my markup page:

     <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" ShowEvent="OnClick"
                    RelativeTo="BrowserWindow" Position="BottomLeft" Width="600px" Height="300px"
                    Animation="Resize" HideEvent="LeaveTargetAndToolTip" Skin="Default" OnAjaxUpdate="OnAjaxUpdate"
                    RenderInPageRoot="true" ManualClose="true" Modal="false">       
     </telerik:RadToolTipManager>     ​

    In code behind, I have this:

    private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            try
            {
                Control ctrl = Page.LoadControl("../UserControls/PriceBreak.ascx");
                panel.ContentTemplateContainer.Controls.Add(ctrl);

                ...

                ....

         }

    Thank you,

    Alex

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 06 Nov 2015 Link to this post

    Hi Alex,

    Can you reproduce this with our demos (e.g., here as in this demo you can set various properties of the tooltip manager through the demo configurator)? If not, does upgrading to the latest version help?

    A few other ideas I can offer are:

    • set the RenderMode to Lightweight
    • set Animation to None
    • set HideEvent to ManualClose
    • set RelativeTo to Element

    Either of those (or a combination) may yield settings more appropriate for a touch-based environment and a small screen.

    Regards,

    Marin Bratanov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alex
    Alex avatar
    2 posts
    Member since:
    Jun 2013

    Posted 06 Nov 2015 in reply to Marin Bratanov Link to this post

    Thank you for responding Marin.  However my issue still persists. Here's a simple code I created:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test1.aspx.cs" Inherits="test" MasterPageFile="~/MasterPage.master" %>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" runat="server">
        </asp:Content>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
        <asp:Button id ="btn" runat="server" Text="Click" />

          <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" ShowEvent="OnClick" RenderMode="Lightweight"
                    RelativeTo="Element" Position="BottomLeft" Width="600px" Height="300px"
                    Animation="None" HideEvent="ManualClose" Skin="Default" OnAjaxUpdate="OnAjaxUpdate"
                    RenderInPageRoot="true" ManualClose="true" Modal="false">       
              <TargetControls>
                  <telerik:ToolTipTargetControl TargetControlID="btn" />
              </TargetControls>
                 </telerik:RadToolTipManager>     

        </asp:Content>

     using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;

    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
        {
            this.UpdateToolTip(args.Value, args.UpdatePanel);
        }

        private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("~/UserControls/PriceBreak.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);

        }
    }

    When I click on the button, nothing gets fired.

     

    Thanks,

    Alex

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 09 Nov 2015 Link to this post

    Hello Alex,

    I just tried that on an iPad 4 and it works fine for me. What I can suggest at this point is the following:

    1. ensure there are no errors (either client-side or server side). iOS 8 and later cause MS AJAX under .NET < 4.0 to fail because of an unrecognized UA string: http://stackoverflow.com/questions/25978746/ios-8-safari-8-not-working-with-asp-net-ajax-extensions. If this is your case, try the browser file from that thread or update .NET to 4.5.
      You can easily test this by adding a simple UpdatePanel to see if AJAX requests are performed properly at all.
    2. see if you can reproduce the problem with our demos. If so, post the steps so I can observe it as well so I can advise further
    3. open a support ticket where you can send us a small runnable example that we can debug so we can investigate this

    Regards,

    Marin Bratanov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top