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

OnPopupClosing Event

5 Answers 53 Views
PickerBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 2
Alex asked on 03 Feb 2014, 06:24 PM
I am trying to cancel popup closing, but looks like e.Cancel = true doesn't fork. It completely brokes PickerBox.

5 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 05 Feb 2014, 04:45 PM
Hi Alex,

Thank you for contacting us. Unfortunately I was unable to reproduce the issue. Could you please take a look at the attached project and let me know if I am missing anything.

Regards,
Kiril Stanoev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
0
Alex
Top achievements
Rank 2
answered on 05 Feb 2014, 05:29 PM
The same problem as i described. Check out little video http://www.youtube.com/watch?v=yUe1oT58edY
0
Kiril Stanoev
Telerik team
answered on 10 Feb 2014, 08:23 AM
Hi Alex,

Thank you for the update. If you're using the back button, you need to set the IsPopupClosedOnBackButton="False" property of the PickerBox. In addition, you need to override the OnBackKeyPress method of your MainPage.

protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
{
    e.Cancel = this.radPickerBox.IsPopupOpen;
}

Give it a try and let us know how it goes.

Regards,
Kiril Stanoev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
0
Alex
Top achievements
Rank 2
answered on 10 Feb 2014, 08:46 AM
Maybe it is workaround, but  e.Cancel = true foesn't work as expected and back button makes PickerBox broken, right?
0
Kiril Stanoev
Telerik team
answered on 10 Feb 2014, 09:02 AM
Hello Alex,

That's why you need to set the IsPopupClosedOnBackButton="False" property. Are you still unable to achieve the scenario you're looking for? Please refer to the attached project.


Regards,
Kiril Stanoev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
Tags
PickerBox
Asked by
Alex
Top achievements
Rank 2
Answers by
Kiril Stanoev
Telerik team
Alex
Top achievements
Rank 2
Share this question
or