How can I get the RadCallout behavior I want

1 Answer 15 Views
Callout
Michael
Top achievements
Rank 1
Iron
Iron
Veteran
Michael asked on 03 Apr 2024, 09:51 AM

I have a callout that opens a control.  I would like the control to stay open even if the user clicks elsewhere -- to close it he'll click on the same button used for opening it.

To prevent the control from closing when the user clicks elsewhere I have set AutoClose to false, but now the control stays open even if I switch to another window, or even another program!  The disembodied control still remains in the foreground.

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 04 Apr 2024, 12:31 PM

Hello, Michael,

When you disable the auto-closing functionality by setting AutoClose property to false, the callout remains open, and this is the desired behavior. In this case, it is up to the developer to consider when exactly to close the callout. For example, you may need to close the callout when a user clicks a button, or when the mouse leaves the form. You can use the RadCallout.Close() to close it whenever it is suitable for you.

Here is an example when closing the callout using the form's MouseLeave event:

private void RadForm1_MouseLeave(object sender, EventArgs e)
{
    this.radCallout1.Close();
}

I hope this information helps. If you have any further questions do not hesitate to ask. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Michael
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 04 Apr 2024, 01:40 PM

Thank you, but I don't understand how that's useful behavior.  I open the callout with AutoClose == false, because that's the behavior I want, but then I Alt+Tab over to my browser and the callout control is still there, blocking part of my browser window.
Nadya | Tech Support Engineer
Telerik team
commented on 09 Apr 2024, 10:14 AM

Hello, Michael,

I am sorry to hear that this behavior is strange for you. When AutoClose property is enabled, the RadCallout should close automatically. However, when it is false, it is up to you to consider when exactly to close it.

We provide opportunity to control the auto-closing functionality, which might be useful in some cases and in other you may want to stop it. 

Please let me know if I can assist you further.

Tags
Callout
Asked by
Michael
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or