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

InputPromptClosedEventArgs problems

5 Answers 73 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.
Jonas Karlsson
Top achievements
Rank 1
Jonas Karlsson asked on 05 Nov 2012, 01:13 PM
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
            }
 
          });

5 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 05 Nov 2012, 01:38 PM
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.

0
Jonas Karlsson
Top achievements
Rank 1
answered on 05 Nov 2012, 01:41 PM
Any workarounds to solve the issue?

Regards,
Jonas
0
Todor
Telerik team
answered on 05 Nov 2012, 02:39 PM
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.

0
vzaytzev
Top achievements
Rank 1
answered on 09 Nov 2012, 05:52 PM
Is there any fix already?
0
Todor
Telerik team
answered on 12 Nov 2012, 07:22 AM
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.
Tags
InputPrompt
Asked by
Jonas Karlsson
Top achievements
Rank 1
Answers by
Todor
Telerik team
Jonas Karlsson
Top achievements
Rank 1
vzaytzev
Top achievements
Rank 1
Share this question
or