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

Crash after calling InputPromt the 2nd time

3 Answers 22 Views
InputPrompt
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Florent
Top achievements
Rank 1
Florent asked on 20 Sep 2013, 05:14 PM
Hello,

I would like to call InputPrompt in a loop while input provided by user is not good.

If I display it again when the user click on the OK button, no problem. But, if I set a KeyPress handler as showed in your documentation,; and close the InputPrompt from it, calling a 2nd time InputPrompt just after crash the app.

I display it through ShowAsync

And it reminds me another bug. The button index you can give in argument to the Close() method does not work. I always have -1 in InputPromptClosedEventArgs.ButtonIndex

Here is for the bugs, I did not see a Windows Phone category in your issue tracker.

Good luck ! ;)

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 25 Sep 2013, 09:08 AM
Hello Florent,

Thank you for writing.

You are absolutely right.

I easily reproduced both issues thank to your detailed explanation. They have been already fixed in our code and both will become part of our Beta release next week.

I have updated your Telerik points for your cooperation. Thank you.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Francisco
Top achievements
Rank 1
answered on 21 Oct 2013, 06:23 PM
Hi, I'm having the same issue, when I show an InputPrompt, and after switching to another app and returning I get this exception:

{System.InvalidOperationException: InputPrompt is already open.
   at Telerik.Windows.Controls.RadInputPrompt.ShowAsync(IEnumerable`1 buttonsContent, Object title, Object message, InputMode inputMode, Style inputStyle, Object checkBoxContent, Boolean isCheckBoxChecked, Boolean vibrate, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Action`1 keyDownHandler)
   
I just upgraded to the later version of the WP8 controls (2013_3_1016_DEV), and after converting sucessfully my project, cleaning it, and rebuilding it, I still have the same issue. Can you please confirm, if this was already fixed in this release (Q3)? If not, can you please suggest any workaround?

Thanks!
0
Todor
Telerik team
answered on 22 Oct 2013, 07:55 AM
Hi Francisco,

The two earlier reported issues have been fixed and I have attached an example to illustrate this.

You can run the sample enter some text and press the keyboard's Enter or Space key to close the input prompt. If you press Enter the DialogResult will be OK and if you press space, the result will be Cancel.

You can open another input prompt and you shouldn't get any exceptions.

If you have another scenario where the reported exception occurs, please let us know what are the steps to reproduce it.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
InputPrompt
Asked by
Florent
Top achievements
Rank 1
Answers by
Todor
Telerik team
Francisco
Top achievements
Rank 1
Share this question
or