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

Custom dialogs

3 Answers 40 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Andrzej Niedzialek
Top achievements
Rank 1
Andrzej Niedzialek asked on 30 May 2008, 01:38 PM
How can I create a custom dialog for "RadEditor for MOSS"? Is it possible?

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 03 Jun 2008, 01:41 PM
Hi Andrzej,

Please review the following KB article that shows how to achieve the desired behavior:
http://www.telerik.com/support/kb/article/b454K-baab-b454T-a-b454c-cbetemdget.aspx


I hope this helps.

Sincerely,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andrzej Niedzialek
Top achievements
Rank 1
answered on 04 Jun 2008, 07:24 AM
Hi

It works fine.

Now the question is how to use aspx's to build this custom dialogs? Where I have to put dll's?
0
George
Telerik team
answered on 05 Jun 2008, 10:51 AM
Hi Andrzej,

Just replace the html with aspx. For example see the following online demo:
http://www.telerik.com/demos/aspnet/Editor/Examples/CustomDialogs/DefaultCS.aspx

Bellow is the code from the example:
RadEditorCommandList["CustomImageManagement"] =  
                function CustomImageManagementCommand(commandName, editor, oTool)  
                {  
                    RadEditor1ClientObject = editor;  
                    editor.ShowDialog(  
                        "ImagesDialogCS.aspx" 
                        , null//argument  
                        , 470  
                        , 500  
                        , InsertCustomImage  
                        , null 
                        , "Custom Dialog");  
                };  
 
                function InsertCustomImage(returnValue)  
                {  
                    if (returnValue)  
                    {  
                        RadEditor1ClientObject.PasteHtml(returnValue);  
                    }  
                }  
 


I hope this helps.

Sincerely,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Andrzej Niedzialek
Top achievements
Rank 1
Answers by
George
Telerik team
Andrzej Niedzialek
Top achievements
Rank 1
Share this question
or