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

BackKeyPress event on closing GroupPicker

1 Answer 40 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
eBuddy
Top achievements
Rank 1
eBuddy asked on 18 Apr 2012, 10:00 AM
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!

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 18 Apr 2012, 11:19 AM
Hi,

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,
Deyan
the Telerik team

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

Tags
JumpList
Asked by
eBuddy
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or