OnPopupClosing Event

6 posts, 0 answers
  1. Alex
    Alex avatar
    23 posts
    Member since:
    Oct 2011

    Posted 03 Feb 2014 Link to this post

    I am trying to cancel popup closing, but looks like e.Cancel = true doesn't fork. It completely brokes PickerBox.
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 05 Feb 2014 Link to this post

    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.
  3. DevCraft banner
  4. Alex
    Alex avatar
    23 posts
    Member since:
    Oct 2011

    Posted 05 Feb 2014 in reply to Kiril Stanoev Link to this post

    The same problem as i described. Check out little video http://www.youtube.com/watch?v=yUe1oT58edY
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 10 Feb 2014 Link to this post

    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.
  6. Alex
    Alex avatar
    23 posts
    Member since:
    Oct 2011

    Posted 10 Feb 2014 in reply to Kiril Stanoev Link to this post

    Maybe it is workaround, but  e.Cancel = true foesn't work as expected and back button makes PickerBox broken, right?
  7. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 10 Feb 2014 Link to this post

    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.
Back to Top
DevCraft banner