referencing dock content on postback

2 posts, 0 answers
  1. Joseph
    Joseph avatar
    4 posts
    Member since:
    Feb 2008

    Posted 05 Mar 2008 Link to this post

    I modified one of the portal examples posted in this forum to create rad docks dynamically.  I'm opening up a RadWindow using a custom DockCommand in my docks.  The RadWindow contains an editor.  I treat the window like a dialog and pass back the html from the editor (RadWindow) to the calling page and dock by using this callback function

    function CallBackFunction(radWindow, returnValue)  
                        var dock = $find(clickedID);  
                        if (returnValue) dock.get_contentContainer().innerHTML = returnValue;  
                        else alert ("No text was returned");  

    This all works great but I need to reference the html sent back on postback so I can save it (to a db or whatever) but I'm not sure how.  Maybe I'm going about this incorrectly.

    Can anyone offer some advice?
  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 10 Mar 2008 Link to this post

    1) You can put the editor in the dock(without window on the page).
    2) You can submit the content in the window(RadEditor content) to the server where you should save it to db, after that with javascript set the RadDock content.
Back to Top