BackKeyPress event on closing GroupPicker

Thread is closed for posting
2 posts, 0 answers
  1. eBuddy
    eBuddy avatar
    13 posts
    Member since:
    Jan 2012

    Posted 18 Apr 2012 Link to this post

    Hi, when i close GroupPicker by pressing back button my page still fires OnBackKeyPress with e.Cancel == false.
    This is a bit inconvenient behavior as i have logic that hides some elements on page.

    Is there any workaround for this situation ?
    Probably this method shouldn't be fired ?

    Thanks in advance!
  2. Deyan
    Deyan avatar
    2147 posts

    Posted 18 Apr 2012 Link to this post


    The BackKeyPress event is exposed by the Page class which is not part of our framework and we cannot control the behavior of this event, i.e. we cannot prevent it from firing.

    I believe that you are subscribing for the BackKeyPress event before we do and therefore you get the args.Cancel value as false. Probably it be useful for you to know that we handle this event as soon as the GroupPicker popup is opened and therefore you might try to subscribe for it after we do so that you can get the args.Cancel == true value.

    I hope this helps. 

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top