Add Popup to ToolbarItem

1 Answer 21 Views
Popup
Joe
Top achievements
Rank 1
Iron
Veteran
Iron
Joe asked on 10 Dec 2024, 08:08 PM
I was trying to have a Popup attached to a button on the page toolbar (iOS).  The page crashes when doing this.  Is this possible?

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 12 Dec 2024, 12:00 PM

Hello Joe,

Thank you for reaching out.

Depending on the scenario, the problem could be that the popup is used at a time when its parent element has not been loaded yet. You can try to move the code showing the popup in a handler that executes when the Loaded event for the page is fired or if you are showing the popup in OnAppearing method with an asynchronous operation you can try to delay showing the popup using the following:

 this.Dispatcher.DispatchDelayed(TimeSpan.FromMilliseconds(200), () =>
 {
       popup.IsOpen = true;
 });

If these workarounds don't fit your scenario, please, send a sample project where the issue can be reproduced so we can investigate further.

Regards, Elena 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.

Tags
Popup
Asked by
Joe
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Elena
Telerik team
Share this question
or