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

Disable X on dialogs

1 Answer 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
pbacayo
Top achievements
Rank 1
pbacayo asked on 03 Feb 2009, 05:27 PM
Hello,

In old RadEditor I could disable the X on the dialogs by setting a CSS class.  Is there a way to do this in the ajax editor dialogs?

Also, is there a way to check that a field has a value before allowing the dialog to close?  Main one is Table ID in the Table insertion dialog.

Thanks for the help,

Pat

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Feb 2009, 03:31 PM
Hi Pat,

You can easily hide the Close X button on the dialogs by setting the following class:

    <style type="text/css"
    .closebutton 
    { 
        displaynone !important; 
    } 
    </style> 

You can see how to modify the code of the editor's dialogs in the following live example: ExternalDialogsPath. You should edit the \EditorDialogs\TableProperties.ascx file and implement your own javascript validation mechanism.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
pbacayo
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or