Crash after calling InputPromt the 2nd time

4 posts, 0 answers
  1. Florent
    Florent avatar
    9 posts
    Member since:
    May 2013

    Posted 20 Sep 2013 Link to this post

    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 ! ;)
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 25 Sep 2013 Link to this post

    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.
  3. DevCraft banner
  4. Francisco
    Francisco avatar
    8 posts
    Member since:
    Apr 2011

    Posted 21 Oct 2013 Link to this post

    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!
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 22 Oct 2013 Link to this post

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