Screentip - How to hide?

5 posts, 1 answers
  1. Eric Moreau
    Eric Moreau avatar
    48 posts
    Member since:
    Sep 2007

    Posted 15 May 2019 Link to this post

    Lately, I switched from Tooltip to screentip on my grids because some cells were containing HTML.

    I have an issue with some grids. I have a feature that disable the grid when a cell is double-clicked (to enable other controls in editing mode). My issue is that if the screentip is visible when I double-click, the screentip remains visible. 

    How to hide the screentip? Do you have an auto-close delay or some other mechanism?

  2. Eric Moreau
    Eric Moreau avatar
    48 posts
    Member since:
    Sep 2007

    Posted 15 May 2019 Link to this post

    Another similar issue where the screentip should hide.

    I have a grid that is automatically refreshed on some events. If the screentip is shown because the mouse cursor hovers the grid, when the grid refreshes, the screentip remains on the screen and now shows incorrect data.

    An auto-close delay (or something else) on the screentip would be really great.

  3. Answer
    Dimitar
    Admin
    Dimitar avatar
    2907 posts

    Posted 16 May 2019 Link to this post

    Hi Eric,

    Currently you can manually hide the screen tip with the following method:
    radGridView1.Behavior.HideScreenTip();

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  4. Eric Moreau
    Eric Moreau avatar
    48 posts
    Member since:
    Sep 2007

    Posted 16 May 2019 in reply to Dimitar Link to this post

    Easy enough to implement. Hard to find in the docs! (I may be a bad reader!)

    Do you see any problems if I override the OnEnabledChanged and the OnRowsChanged events like this:

            protected override void OnEnabledChanged(EventArgs e)
            {
                base.OnEnabledChanged(e);
                Behavior.HideScreenTip();
            }

            protected override void OnRowsChanged(object sender, GridViewCollectionChangedEventArgs args)
            {
                base.OnRowsChanged(sender, args);
                Behavior.HideScreenTip();
            }

  5. Dimitar
    Admin
    Dimitar avatar
    2907 posts

    Posted 17 May 2019 Link to this post

    Hi Eric,

    I do not see any reason not to use this approach. Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top