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

referencing dock content on postback

1 Answer 69 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 06 Mar 2008, 02:06 AM
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?

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 10 Mar 2008, 02:22 PM
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.
Tags
Dock
Asked by
Joseph
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or