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

Using Keyboard in Predefined RadWindow.Prompt

5 Answers 92 Views
Window
This is a migrated thread and some comments may be shown as answers.
Yoga
Top achievements
Rank 1
Yoga asked on 16 May 2012, 09:58 AM
Hi I am using predefined RadWindow.Promp to prompt a simple input text from user. Is it possible to configure enter key when hitting OK button? Please advise.

Thanks

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 19 May 2012, 07:59 AM
Hello,

This is the default behavior of the RadPrompt dialog - when you hit enter it should close the dialog and click the OK button, returning DialogResult - True.
Could you please let us know what kind of difficulties do you experience?

Regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Yoga
Top achievements
Rank 1
answered on 21 May 2012, 03:22 AM
When the dialog prompt appeared the focus is in the textbox and when I hit enter there is nothing happen. The snippet below is how I make call to the RadWindow.Prompt:

DialogParameters parameter = new DialogParameters();
parameter.Header = header;
parameter.Content = content;
parameter.DefaultPromptResultValue = "0";
parameter.Closed += new EventHandler<WindowClosedEventArgs>((sender, args) =>
{
  if (args.PromptResult != null)
  {
    var amount = Convert.ToDecimal(args.PromptResult.Trim());
    Service.ComposeAction(mailType, amount);
  }
});
RadWindow.Prompt(parameter);

I am currently using RadControls Q1 2012.

Is there anything that I missed?
0
Yoga
Top achievements
Rank 1
answered on 22 May 2012, 07:03 AM
Apparently the keyboard is not properly mapped in the telerik assembly Version=2012.1.215.1050, which I used for development.

I have updated the assembly to Version=2012.1.326.1050 and everything works fine as expected.

I hope this help for others who stumbled upon the same issue.

Cheers,

Y
0
Arturo
Top achievements
Rank 1
answered on 31 Jul 2012, 11:03 PM
Hi,

I'm using the Q2 2012 but for SL4 and my IE gets freeze when i hit the enter key, everything works fine when i click the OK button

this is my code:
Telerik.Windows.Controls.RadWindow.Prompt(new DialogParameters()
{
      Header = header,
      Content = content,
      Closed = new EventHandler<WindowClosedEventArgs>((s, e) =>
      {
            //CODE
      }
}
0
Georgi
Telerik team
answered on 03 Aug 2012, 11:16 AM
Hi Arturo,

We have tried to reproduced the issue, but with no luck. Attached you can find our test project and video showing how it works on our side. It would be great if you can check it out and let us know if the issue can be reproduced on your side. We have tested it with Silverlight 4 project and assemblies on machines with Silverlight 4 and Silverlight 5 plugins installed.

Kind regards,
Georgi
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Window
Asked by
Yoga
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Yoga
Top achievements
Rank 1
Arturo
Top achievements
Rank 1
Georgi
Telerik team
Share this question
or