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

how to select default new window option

2 Answers 66 Views
Editor
This is a migrated thread and some comments may be shown as answers.
zaib
Top achievements
Rank 1
zaib asked on 04 Aug 2011, 01:58 PM
How to select new window option for ddl when i click on hyperlink image for creating hyper link the new window popup is open there is a ddl for target inside this ddl how i select new window option by default.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Aug 2011, 08:31 PM
Hello Zaib,

You can easily modify the functionality of the Link manager by registering the external RadEditor dialog files and opening the /EditorDialogs/LinkManager.ascx file. You can see how to do that in the following live example: Customize Built-in Dialogs.

After that set the third option of the linkTargetCombo dropdown to be selected by modifying the following line
this._linkTargetCombo.options[0].selected = true;
to
this._linkTargetCombo.options[2].selected = true;
, e.g.

_cleanInputBoxes : function()
{
this._linkUrl.value = "";
this._linkText.value = "";
if (this._linkTargetCombo.options && this._linkTargetCombo.options.length>0)
{
this._linkTargetCombo.options[2].selected = true;
}
...

Save the file.

Greetings,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
zaib
Top achievements
Rank 1
answered on 07 Aug 2011, 01:36 PM
thanx its really help me to solve my problem
Tags
Editor
Asked by
zaib
Top achievements
Rank 1
Answers by
Rumen
Telerik team
zaib
Top achievements
Rank 1
Share this question
or