Default field in Hyperlink Manager

2 posts, 0 answers
  1. Peter
    Peter avatar
    3 posts
    Member since:
    Jan 2008

    Posted 06 Jun 2008 Link to this post

    Is there any way to change the default field (the field that has focus) in the Hyperlink Manager?  I'd like to be able to have the URL field have focus and automatically select the contents so that users can simply type/paste a URL and press OK instead of having to click the URL field and select the contents before typing/pasting.

    Cheers -- Peter
  2. George
    George avatar
    859 posts

    Posted 10 Jun 2008 Link to this post

    Hi Peter,

    Please review bellow how to achieve the desired behavior.
    1. Copy the editor's dialogs' folder within your application - you can get it from the editor's installation zip or from the hotfix zip within your account.
    2. Set the editor's ExternalDialogsPath property to point to the dialogs folder e.g.ExternalDialogsPath="~/EditorDialogs"
    3. Open the EditorDialogs/LinkManager.ascx file and on the bottom of the clientInit: function() add the desired code:

      clientInit : function(clientParameters)
         this._clientParameters = clientParameters;
         if(this._clientParameters.selectedTabIndex && this._clientParameters.selectedTabIndex >= 0)
         // here - set focus to the LinkURL textbox
    I hope this helps.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top