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

[Solved] Custom Dialog close button

3 Answers 130 Views
Editor
This is a migrated thread and some comments may be shown as answers.
pmoney pmoney
Top achievements
Rank 1
pmoney pmoney asked on 12 Jan 2010, 11:06 PM
How do I specify for a custom dialog to display the close button like for the Document Manager dialog?
Please help me with this!

3 Answers, 1 is accepted

Sort by
0
pmoney pmoney
Top achievements
Rank 1
answered on 12 Jan 2010, 11:15 PM
Nevermind I figured it out.
Thanks! :)
0
Trevor
Top achievements
Rank 2
answered on 28 Jan 2010, 10:41 PM
I would like to know how to do this.
I added a link to the linkmanager to open a window to select custom links:

<

 

a href="#" onclick="ShowCustomDialog();return false;">Select a link from links</a>
but when the window opens it has no "close button"

Trevor

 

0
Rumen
Telerik team
answered on 01 Feb 2010, 03:46 PM
Hello Trevor,

My suggestion is to see this live example which demonstrates how to create a custom dialog. To show the close button set the Telerik.Web.UI.WindowBehaviors.Close behavior as an argument of the showExternalDialog function:

editor.showExternalDialog(
            'InsertLink.aspx',
            argument,
            270,
            300,
            myCallbackFunction,
            null,
            'Insert Link',
            true,
            Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
            true,
            true);

Regards,
Rumen
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.
Tags
Editor
Asked by
pmoney pmoney
Top achievements
Rank 1
Answers by
pmoney pmoney
Top achievements
Rank 1
Trevor
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or