Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2077
Tooltip on EditorButton of a combo used as an editor control in a grid's column
posted

I have a combo which I use as an editor control in a grid's column. This combo has an EditorButton. I would like to show a tooltip when the user point the mouse over this button.

I have tried the solution found at http://community.infragistics.com/forums/p/59153/300694.aspx, but it does not work when the combo is used as an editor control (the MouseEnterElement is never invoked), although it works when it is on a form.

How can I show a tooltip in my case?

Thanks,

Emanuel

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Emanuel,

    So what exactly are you doing in the grid? The code in the sample you linked to is hooking the MouseEnterElement event of the combo. Obviously, that won't work if you are using a grid and not a combo, because the mouse will not be entering any elements in the combo. You would have to hook the MouseEnterElement event of the grid, instead.

    You will, of course, also have to show the tooltip on the grid and not the combo. And you will probably want to trap MouseLeaveElement, also, so that you can clear the tooltip when the mouse leaves the button.

    For a more complete implementation of something like this, you might want to check out the sample included with NetAdvantage called "Tooltips with Context". It's usually installed in a location something like this:

    ...\2011.1\Samples\WinMisc\CS\ToolTipManager\ToolTips with Context CS

     

Children