Using Keyboard in Predefined RadWindow.Prompt

6 posts, 0 answers
  1. Yoga
    Yoga avatar
    6 posts
    Member since:
    Jun 2012

    Posted 16 May 2012 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 19 May 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Yoga
    Yoga avatar
    6 posts
    Member since:
    Jun 2012

    Posted 20 May 2012 Link to this post

    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?
  5. Yoga
    Yoga avatar
    6 posts
    Member since:
    Jun 2012

    Posted 22 May 2012 Link to this post

    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
  6. Arturo
    Arturo avatar
    2 posts
    Member since:
    Aug 2012

    Posted 31 Jul 2012 Link to this post

    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
          }
    }
  7. Georgi
    Admin
    Georgi avatar
    349 posts

    Posted 03 Aug 2012 Link to this post

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