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

Hyperlink Manager SetWidth

3 Answers 113 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ErikK
Top achievements
Rank 1
ErikK asked on 31 May 2010, 08:25 PM
Hi

Changing the width of the Hyperlink Manager / LinkManager.ascx, has no effect.

radEditor.DialogOpener.Width = new Unit(450, UnitType.Pixel);

or

radEditor.DialogOpener.Window.Width = new Unit(450, UnitType.Pixel);

The LinkManager.ascx is customized

Is it possible to change the width ?

/Erik K

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Jun 2010, 03:10 PM
Hi ErikK,

You can resize the link manager using the server code below:

protected override void OnPreRenderComplete(System.EventArgs e)
{
    base.OnPreRenderComplete(e);
    DialogDefinition imagePropertiesDialog = RadEditor1.GetDialogDefinition("LinkManager");
    imagePropertiesDialog.Height = Unit.Pixel(900);
    imagePropertiesDialog.Width = Unit.Pixel(900);
}


Regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
ErikK
Top achievements
Rank 1
answered on 03 Jun 2010, 08:51 AM
Hi Rumen

The sample works fine, with aspx page, but i have included the radEditor in a webcontrol

OnPreRenderComplete is not availible, and radEditor.DialogDefinitions is 0.

So your solution does not work for me.

Is it possible to change the width on the Client Side ?

By the way "GetDialogDefinitions" do not work with intellisense, Visual Studio 2010.

/Erik K
0
Accepted
Rumen
Telerik team
answered on 03 Jun 2010, 09:08 AM
Hi Erik,

In a user control scenario you can use the code below:

protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        this.Page.PreRenderComplete += new EventHandler(Page_PreRenderComplete);
    }
    void Page_PreRenderComplete(object sender, EventArgs e)
    {
        DialogDefinition linkManagerDialog = RadEditor1.GetDialogDefinition("LinkManager");
        linkManagerDialog.Height = Unit.Pixel(900);
        linkManagerDialog.Width = Unit.Pixel(900);
    }

Sincerely yours,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
ErikK
Top achievements
Rank 1
Answers by
Rumen
Telerik team
ErikK
Top achievements
Rank 1
Share this question
or