Error On RadToolTip in Ajax Scenario

4 posts, 1 answers
  1. jgill
    jgill avatar
    116 posts
    Member since:
    Jul 2005

    Posted 20 Mar 2011 Link to this post

    Hello,
    I am running into a strange error when trying to implement a version of http://blogs.telerik.com/toddanglin/posts/08-12-12/showing_radtooltip_on_radinput_input_error.aspx.  The error is "htmlFile: Unspecified error." and is called from var n=q.getClientRects(); which is in turn called from var b=$telerik.getLocation(a) in the Telerik JavaScript.

    Any help in pointing out the cause of this would be appreciated.

    Steps To Reproduce:
    1. Enter a valid mm/yyyy value in the first textbox, e.g. 1/2011
    2. Click outside of the textbox and ensure it loses focus

  2. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 22 Mar 2011 Link to this post

    Hello jgill,

     I am afraid that I cannot tell what is the exact problem without having some code which could be run and yours is not such due to missing classes, etc.

    However, here is what I can assume and suggest:

    1) Make sure that you set the target in your code, e.g below:

    function ShowErrorToolTip(element, msg) {
                    //Init tooltipmanager reference (if necessary)
                    if (tooltipManager == null)
                        tooltipManager = $find("<%= ToolTipManager.ClientID %>");
                    //If the user hovers the image before the page has loaded, there is no manager created
                    if (!tooltipManager) return;
       
                    //Find the tooltip for this element if it has been created
                    var tooltip = tooltipManager.getToolTipByElement(element);
       
                    //Create a tooltip if no tooltip exists for such element
                    if (!tooltip)
    {
                        tooltip = tooltipManager.createToolTip(element);
    tooltip.set_targetControl(element);
    }
       
                    //Set tooltip details
                    tooltip.set_content(msg);
                    tooltip.set_autoCloseDelay(5000);
                    tooltip.show();
                }

    2) Try disabling your AJAX settings for the test. If this works correctly, revise your AJAX settings and make sure that you update the tooltip manager every time you update the targets.

    3) If the above does not help, please prepare some simple runnable code or either share it here or open a new support ticket and send it as a runnable demo. Add detailed reproduction steps and explanations as well and we will do our best to help.

    Regards,
    Svetlina
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. jgill
    jgill avatar
    116 posts
    Member since:
    Jul 2005

    Posted 22 Mar 2011 Link to this post

    I will try your suggestion, however the code I entered can be run.  If a new .aspx page is created then the Telerik Web UI dll imported at the top declartively and the code-behind VB pasted into the code behind for the page (adding a Imports Telerik Web UI) the code runs and the error re-produced.  I can paste that version as well if your suggestion does work out.

    Thanks,
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 24 Mar 2011 Link to this post

    Hello jgill,

     I again tried to run the code and this time I was able to do so after I added custom FindControlRecursive function. I am not sure why I got other compilation errors last time I tried to run and I apologize for the misunderstanding (I assume that it could have been some configuration.namespace issue).

    Straight to the point - I tested the code with the latest version of RadControls as you have mentioned under IE8, IE9 and FF3 - however, I did not get an error. Would you please examine the attachment? If you can reproduce the problem with this code, please send me a video capture of how you do this with the very same demo. Otherwise, please check again the version of RadControls you are using and also provide more detailed information about the browser under which you get the error.

    Greetings,
    Svetlina
    the Telerik team
Back to Top