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

Anyway to obtain PopUpOpening/Closing events

1 Answer 41 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anthony
Top achievements
Rank 1
Anthony asked on 27 Dec 2011, 10:33 PM
Hi,

I am using the ListPicker inside of a popup box and would like to know if there was a way that I could run some code when the ListPicker PopUp is opening/closing.  

I attempting to solve the following issue in my app.

Display PopUp window containing ListPicker.
User taps ListPicker which displays the ListPicker PopUp window. 
User taps the back back button. 
Both the ListPicker window and my Rad Window close at the same time.

If I can hook into this ListPicker PopUp opening event I can set the IsClosedOnBackButton property on the first PopUpWindow to false.  Then once the window closes the ListPicker PopUp, I can set it back to true.

Please let me now if you need anymore information

Thanks,
Ant

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 30 Dec 2011, 08:20 AM
Hello Anthony,

I believe the StateChanged event should be useful in your scenario. It is fired providing an instance of the

ListPickerStateChangedEventArgs

Which contain information about the new state of the control. You can use the Expanding and Collapsing states to set the IsClosedOnBackButton property of the popup.

I hope this helps.

Kind regards,
Deyan
the Telerik team

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

Tags
ListPicker
Asked by
Anthony
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or