This is a migrated thread and some comments may be shown as answers.

Behavior and positioning of Modal / Not Modal PopUp

3 Answers 212 Views
Popup
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Feb 2019, 02:16 PM

Hi,

I am playing around with the PopUp but I have several basic issues:

 

  1. I would like the Modal PopUp to close when I click outside the PopUp (This is how the Non-Modal popup behaves??).
  2. When I add a "Non-Modal" popup, I would like my page to stay active (right now the PopUp will close when I click outside the PopUp, but the content on my page is not active until the PopUp is closed.)
  3. I find it difficult to position the PopUp - How can I place it horizontally centered with a margin to the left and the right and vertically on top with a margin? (If I add Margin to the border inside the PopUp's content, then the "Non-Modal "popup wont close when I click on the area defined by the "Margin")

Best regards,

 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Feb 2019, 12:43 PM
Hi Michael,

Thank you for your interest in RadPopup control.

Let's go straight to the issues:

1. The idea of the modal popup is the content behind to be inactive, that's why clicking outside has no effect. Indeed, what you've described sounds like you'd need a non-modal popup. If that's not the case, could you elaborate more on the exact scenario you have?

2. Currently, the non-modal popup is closed as soon as the user taps outside it, we have a feature request for the behavior you'd need, please cast your vote and track its status at the link below:
https://feedback.telerik.com/xamarin/1386785-popup-provide-a-way-not-to-close-the-popup-when-the-user-clicks-outside

3. First, you would need to attach the Popup to the Page element (using RadPopup.Popup attached property), then set its Placement to Relative (in this way it aligns to the top left corner of its target which is the Page) and define HorizontalOffset and VerticalOffset according to the needed margins.  I have attached a quick example to demonstrate how this would work.

Let me know if any additional questions arise.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Michael
Top achievements
Rank 1
answered on 03 Apr 2019, 07:50 PM

As you describe the modal popup (see below) I would expect that the content behind the Non-modal popup would stay active all the time. In my opinion there is a bug in the control?

The only difference between modal or not - is that the Modal wont close when you click outside. In both senators, the content behind the popup is not active until then popup is closed.

Modal popup
You could define whether the popup will be modal or not through the IsModal Boolean property. When IsModal is True, the UI behind the popup gets inactive and cannot be used until the popup is closed.

The correct description would be:

When IsModal is True or False, the UI behind the popup gets inactive and cannot be used until the popup is closed.

 


0
Yana
Telerik team
answered on 04 Apr 2019, 03:25 PM
Hi Michael,

I agree that the description could be a little misleading and I will update it right away.

What we meant here, actually, is that with non-modal popup, you could easily focus on the content behind, by just clicking outside the popup.  I will make sure to explain it in more details in the documentation.

Thank you for sending your comments on this, I've updated your points as a small sign of gratitude for your involvement.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Popup
Asked by
Michael
Top achievements
Rank 1
Answers by
Yana
Telerik team
Michael
Top achievements
Rank 1
Share this question
or