Custom dialogs

4 posts, 0 answers
  1. Andrzej Niedzialek
    Andrzej Niedzialek avatar
    3 posts
    Member since:
    Nov 2006

    Posted 30 May 2008 Link to this post

    How can I create a custom dialog for "RadEditor for MOSS"? Is it possible?
  2. George
    Admin
    George avatar
    859 posts

    Posted 03 Jun 2008 Link to this post

    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
  3. Andrzej Niedzialek
    Andrzej Niedzialek avatar
    3 posts
    Member since:
    Nov 2006

    Posted 04 Jun 2008 Link to this post

    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?
  4. George
    Admin
    George avatar
    859 posts

    Posted 05 Jun 2008 Link to this post

    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
Back to Top