Hi,
I'm trying to find a way to utilise the ".set_html" javascript call to obviously set the content of the editor on a postback (or client-side). I'm using a RadGrid which is holding versions of content with a selecting button which fires a 'SelectedIndexChanged' event - this is where I am attempting to set the html of the editor by calling the following:
I'm trying to find a way to utilise the ".set_html" javascript call to obviously set the content of the editor on a postback (or client-side). I'm using a RadGrid which is holding versions of content with a selecting button which fires a 'SelectedIndexChanged' event - this is where I am attempting to set the html of the editor by calling the following:
| Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "setversion", "javascript:setContent('" + txtDescription.UniqueID + "','" + RadEditor1.UniqueID + "');", True) |
The function is here:
| <script type="text/javascript" language="javascript"> |
| function setContent(textbox,editor) |
| { |
| $find(editor).set_html($get(textbox).value); |
| } |
| </script> |
Is this possible to do? If I'm heading in the wrong direction any advice would be greatly appreciated.
Thanks
