Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Prompt, force focus on prompt textbox

Not answered Prompt, force focus on prompt textbox

Feed from this thread
  • Giancarlo Aguilera avatar

    Posted on Sep 16, 2008 (permalink)

    Hello Telerik!

    Is there a way to force focus on the textbox that is displayed as a result to a call to RadWindow.Prompt? Currently it appears the user has to click the textbox in order to focus.

    Also, it would be great if it were somehow possible to specify a default button that's clicked when the Enter key is pressed.

    Thanks!

    Reply

  • Hristo Borisov Hristo Borisov admin's avatar

    Posted on Sep 17, 2008 (permalink)

    Hello Giancarlo Aguilera,

    Currently, you cannot set the focus on the prompt textbox from the static call. We will improve this functionality for our next release. Moreover, we also plan to include a functionality for default button focus, so that when you hit the enter button it will automatically click the button. Thank you for your valuable feedback.

    Your Telerik points have been updated as per our EAP Program.

    Sincerely yours,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

    Reply

  • yjh avatar

    Posted on Oct 25, 2009 (permalink)

    One year has past, but I can't see any functionality for default button focus.

    It's better if RadConfirm/RadPrompt provide functionality to set default focus button / textbox, and functionality to set button's width / height / horizontal alignment.

    Reply

  • Miroslav Nedyalkov Miroslav Nedyalkov admin's avatar

    Posted on Oct 28, 2009 (permalink)

    Hello Yoa,

    The default focused element of the RadPrompt is the TextBox and the default focused button of the RadConfirm is the Ok button. The Ok button is clicked of Enter key is hit and the Cancel button is clicked when the Esc key is hit. This behavior is by design.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Posted on Nov 26, 2010 (permalink)

    Hi Miroslav,

    it does not seem to me that the textbox is getting the focus:

    RadWindow

     

     

    .Prompt(new DialogParameters()

     

    {

    Header =

     

     

    "Create a new Folder",

     

    Content =

     

     

    "Please enter the name of the new Folder:",

     

    Closed = (

     

     

    object sender, WindowClosedEventArgs e) =>

     

    {

     

     

     

    if (true == e.DialogResult && !string.IsNullOrEmpty(e.PromptResult))

     

    {

     

     

     

    string folderName = e.PromptResult;

     

    }

    }

    });

    Any workaround?

    Is it possible to active the OK button only when text has been entered?

    Reply

  • Miroslav Nedyalkov Miroslav Nedyalkov admin's avatar

    Posted on Nov 29, 2010 (permalink)

    Hello,

     The focus should be on the TextBox by default (if the focus is in the Silverlight plugin of course). Could you please describe in more details what do you observe and in which case. If you could open a support ticket and provide us with a sample project this would be of great help!

    The behavior you need (to disable the OK while no text is entered) is not supported in the default implementation. What I would suggest you is to create a custom dialog and use it instead of using the Prompt static method.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight

    Reply

  • Posted on Nov 29, 2010 (permalink)

    see Ticket 371211 for a sample solution

    Reply

  • George George admin's avatar

    Posted on Nov 30, 2010 (permalink)

    Hello,

    We reproduced the issue. Thank you for reporting this bug, it helps us in improving our products. We will investigate the cause for this issue and we will fix it in one of our future releases.
     

    Please do not hesitate to contact us if you require any further information.

     

    Kind regards,
    George
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight

    Reply

  • Enal avatar

    Posted on Feb 1, 2012 (permalink)

    Hello, I was just going to report this but noticed someone did so years ago.
    This should but does not focus on the text box. Is there a setting?

     RadWindow.Prompt( "Enter your name:", this.OnClosed, "John Doe" );

    Thanks.

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Feb 6, 2012 (permalink)

    Hi all,

    This issue is already fixed. Please download the latest available assemblies and try with them - you could either test with the latest official release which is Q3 2011 SP1 or with the latest internal build which will be uploaded later today.
    If you still experience the issue, please send us a sample project which we can run here locally and debug.

    All the best,
    Konstantina
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Prompt, force focus on prompt textbox
Related resources for "Prompt, force focus on prompt textbox"

Silverlight Window Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]