RadControls version |
2009.1.527.35
|
.NET version |
3.5
|
Visual Studio version |
2008
|
programming language |
C#
|
browser support |
all browsers supported by RadControls
|
PROJECT DESCRIPTION
I have code working to save and restore the size of the RadEditor. The solution uses a hidden textbox on the page, along with script, called by OnClientSubmit(), to populate that textbox with "widthpx heightpx", and code-behind that is called on postback to read that textbox contents and save the editor's height and width to profile. There is also code called by Page_Load to restore that height and width from profile.
So, the steps to create this are:
1. Put a RadEditor and a Textbox on the page
2. Provide an OnClientSubmit handler in javascript to read the current editor height and width and store those in the (hidden) textbox
3. Provide a "Save" button with OnClientSubmit to call that handler
4. Provide code-behind to read the textbox values and save the editor sizes in profile
5. Provide code-behind to load editor sizes from profile and set the editor
The profile in this example is stored in an MDB for this code project, but in production SQL server is used.
That's it.
-Jon