InputPromptClosedEventArgs problems

6 posts, 0 answers
  1. Jonas Karlsson
    Jonas Karlsson avatar
    8 posts
    Member since:
    Nov 2009

    Posted 05 Nov 2012 Link to this post

    Having problems with the input prompt.
    Seems like the inputpromptclosedeventargs doesn´t work as it should.
    The result is always Cancel and buttonindex -1.


    Style textBoxStyle =
    new System.Windows.Style(typeof(RadTextBox));
               textBoxStyle.Setters.Add(new Setter(RadTextBox.InputScopeProperty, "text"));
               string messageTitle = "Rename sensor";
               string message = "Please enter the new name for the sensor";
               RadInputPrompt.Show(messageTitle, MessageBoxButtons.OKCancel, message, InputMode.Text, textBoxStyle,
     
              closedHandler: (args) =>
              {
                  // ClickedButton will be null in the case when RadMessageBox is closed because the user pressed the hardware back button.
                  if (args.ClickedButton == null)
                  {
                      return;
                  }
     
                  var test = args.Result;
     
                  if (args.Result == DialogResult.OK)
                  {
                       //yaddaaa
                }
     
              });

  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 05 Nov 2012 Link to this post

    Hello Jonas,

    Thank you for contacting us.

    Yes, you are right that such an issue exists in the current version of RadInputPrompt. We have already addressed the issue and the fix will be available for download with our next internal build.

    I have added some telerik points to your account for bringing this issue to our attention.

    All the best,
    Todor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Jonas Karlsson
    Jonas Karlsson avatar
    8 posts
    Member since:
    Nov 2009

    Posted 05 Nov 2012 Link to this post

    Any workarounds to solve the issue?

    Regards,
    Jonas
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 05 Nov 2012 Link to this post

    Hi Jonas,

    The build will be available by the end of the week and then you will be able to test your application. For now, you can experiment with RadMessageBox which is working similarly to RadInputPrompt with the only difference that there is no input field and no Text argument in the MessageBoxClosedEventArgs.

    Please accept my apologies for the inconvenience caused.


    Greetings,
    Todor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. vzaytzev
    vzaytzev avatar
    6 posts
    Member since:
    Dec 2007

    Posted 09 Nov 2012 Link to this post

    Is there any fix already?
  7. Todor
    Admin
    Todor avatar
    778 posts

    Posted 12 Nov 2012 Link to this post

    Hi Vasily,

    Yes, the fix is ready and you can download it from your account in the Latest Internal Builds section.

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