RadToolTip and firefox issue

9 posts, 0 answers
  1. Matt
    Matt avatar
    23 posts
    Member since:
    Mar 2011

    Posted 22 Mar 2011 Link to this post

    I have a page with many images. There are scroll bars on the side because there are so many images. So if you are scrolled down to the bottom and hover over a image, the radtooltip causes the page to scroll back up to the top in firefox. it works fine in ie.
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 24 Mar 2011 Link to this post

    Hi Matt,

     I assume that you are using RadToolTipManager with OnAjaxUpdate - if so, Indeed, what you report is expected. When a partial update is done, the scroll position is lost and this is related to general ASP.NET and AJAX and it is not directly related to the tooltip but to how the things work (you can easily reproduce it by using a standard asp update panel and no RadControls at all).

    What I suggest is to save the scroll position before the OnAjaxUpdate event e.g in hidden fields and when the content is loaded to reset it back. You can find more information about this and also other techniques on how to persists the scroll position on the net, e.g you can start from here:

    http://www.google.bg/#hl=bg&source=hp&q=scroll+position+ajax&meta=&rlz=1R2WZPA_enBG347&aq=f&oq=scroll+position+ajax&fp=a0599798b4eb5972


    If this is not the case, please provide some more details about your exact configuration and we will examine it and do our best to help.

    All the best,
    Svetlina
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tim Harker
    Tim Harker avatar
    12 posts
    Member since:
    Jul 2009

    Posted 28 Apr 2011 Link to this post

    Why isn't this included in your tool?
  5. Matt
    Matt avatar
    23 posts
    Member since:
    Mar 2011

    Posted 28 Apr 2011 Link to this post

    Yeah I have seen stuff like that before, the only problem is this tool tip is inside a custom contol inside a page inside a master page and I just can't figure out how to make that work. All the examples are just for simple pages with the tool tip on it.
  6. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 May 2011 Link to this post

    Hello guys,

     Tim, we have this logged in our TODO but only a  few customers have asked about it and the priority is low. In addition, this is general AJAX behavior which is not introduced by RadToolTip. I can confirm that embedding this in source code will be considered in future but for the time being, please use the workaround we have provided.

    Matt, I am afraid that I could not completely understand what is the problem you experience - even if the tooltip is in a custom control, you can handle its client events and check if the page contains a specific js function (which is the one saving/restoring scroll position). Then you should simply call it in case it exists , otherwise - do nothing. In this manner your custom control will work on all pages, no matter you have put the script on the main page or not. As to our demos - they are straight forward on purpose because their goal is to show basic and particular functionality - if they are complicated it will be harder to detect the exact code related to the feature you are interested in. In addition, we have a few bigger projects as the car rental, outlook mail, dashboard, etc which you can also download and use. At last, the behavior in mention is not directly related to RadToolTip but to MS AJAX as already explained - if you remove the tooltip from your custom control and put an update panel with a button instead, you will get the same result.

    All the best,
    Svetlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  7. Matt
    Matt avatar
    23 posts
    Member since:
    Mar 2011

    Posted 03 May 2011 Link to this post

    Well that's my problem. The examples show a tool tip on a page and some javascript methods on a page. Yeah I can make that work. But on the project I am working on there is a master page->page->user control->user control->user control->tool tip hierarchy and I can't get it to work. Not sure where to put stuff to make this work correctly. Does certain parts go on the master page? Do certain parts go on the page? The control?
  8. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 06 May 2011 Link to this post

    Hi Tim,

    What you ask is general knowledge on how to deal with MasterPage, User Control, etc and I cannot tell what is your exact case without examining your code.

    In brief, I assume that the following will work:

    1) Put the javascript functions of saving and restoring the scroll position of the page on the master page.
    2) Handle the OnClientShow and OnClientHide events of the tooltip - this could be done where the tooltip itself is declared/created.
    3) In the handlers from 2) check if  the js functions for restore and save exist - if so, simply call them (no matter they are on the master  page, the resultant page is on so they should be there). The check is needed because you could use the same control on another page where you do not want to restore the scroll position or to avoid an error if this code is missing.
     

    All the best,
    Svetlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  9. Matt
    Matt avatar
    23 posts
    Member since:
    Mar 2011

    Posted 23 May 2011 Link to this post

    Yeah, I just can't get it to work. I have tried well over 2 dozen "solutions" and not one will work for me. I give up I guess.
  10. Matt
    Matt avatar
    23 posts
    Member since:
    Mar 2011

    Posted 23 May 2011 Link to this post

    t
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017