
function OnClientExpandedHandler(sender, args)
{
var splitter = $find("RadSplitter1");
var pane = splitter.GetPaneById("RadPane1");
var slidingZone = $find("SlidingZone1");
var paneID = slidingZone.GetPaneById("RadSlidingPane1");
slidingZone.DockPane(paneID); // dock the pane
alert('but yet it is not docked');
| <textarea id="situation1" style="width: 100%;" class="textInput" rows="4"></textarea> | |
| <telerik:RadSpell ID="rsSpellCheck_situation" ButtonType="LinkButton" runat="server" ControlToCheck="situation1" IsClientID="False" FragmentIgnoreOptions="All" SpellCheckProvider="PhoneticProvider" SupportedLanguages="en-US,English" WordIgnoreOptions="None" DictionaryPath="~/App_Data/RadSpell" /> | |
| <script type="text/javascript"> | |
| /*<![CDATA[*/ | |
| function MultipleTextSource(sources) | |
| { | |
| this.sources = sources; | |
| this.get_text = function() | |
| { | |
| var texts = []; | |
| for (var i = 0; i < this.sources.length; i++) | |
| { | |
| texts[texts.length] = this.sources[i].get_text(); | |
| } | |
| return texts.join("<controlSeparator><br/></controlSeparator>"); | |
| } | |
| this.set_text = function(text) | |
| { | |
| var texts = text.split("<controlSeparator><br/></controlSeparator>"); | |
| for (var i = 0; i < this.sources.length; i++) | |
| { | |
| this.sources[i].set_text(texts[i]); | |
| } | |
| } | |
| } | |
| function startSpell() | |
| { | |
| var sources = | |
| [ | |
| new Telerik.Web.UI.Spell.HtmlElementTextSource($get('situation1')), | |
| new Telerik.Web.UI.Spell.HtmlElementTextSource($get('newNote1')) | |
| ]; | |
| var spell = GetRadSpell('<%= rsSpellCheck_situation.ClientID %>'); | |
| spell.set_textSource(new MultipleTextSource(sources)); | |
| spell.startSpellCheck(); | |
| } | |
| /*]]>*/ | |
</script>
|
|
|
Chinese (Simplified) |
|
Chinese (Traditional) |
|
English (U.K.) |
|
English (U.S.) |
|
French (Canada) |
|
French (France) |
|
German |
|
Italian |
|
Japanese |
|
Portuguese (Brazil) |
|
Spanish |

| Execution Error | Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Decimal.Parse(String s, NumberStyles style, IFormatProvider provider) at System.Convert.ToDecimal(String value, IFormatProvider provider) at System.String.System.IConvertible.ToDecimal(IFormatProvider provider) at System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider) at System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) at System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatString) at System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) at System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) at Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind) at Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) |
0.0221968155170559 | 0.000909 |
Hi
I know I can replace HTML text as follows:
var theSelectionObject = editor.getSelection();
editor.pasteHtml('<span class="myNewClass">' + theSelectionObject.getHtml() + '</span>')
However, if I want to replace the text of the parent element, how would I do it? I know I can get a reference to the parent element as follows, but cant find a setHTML method?
var theSelectionObject = editor.getSelection();
var theSelectedElement = theSelectionObject.getParentElement();
