


function OnClientSelectionChange(editor, args) { var selElem = editor.getSelection().getParentElement(); //return the currently selected object in the content area var oTool = editor.getToolByName("InsertRowAbove"); //get a reference to the custom tool if (selElem.tagName == "TD") //if the selected element is of image type, make the tool's icon active { oTool.setState(0); //Enable Tool Icon } else { oTool.setState(-1); //Disable Tool Icon } }<telerik:RadEditor ID="RadEditor1" runat="server" Skin="Default" OnClientSelectionChange="OnClientSelectionChange" ContentAreaMode="Div" Height="600px" Width="700px" ToolsFile="~/Admin/Form/Controls/DefaultTools.xml"> 
<
table border="0" style="width: 100%">
<tr valign="middle">
<td style="text-align: left;">
<telerik:RadAsyncUpload ID="rauPRFImageUpload" runat="server" AllowedFileExtensions="jpg,jpeg,png,gif,bmp"
BorderWidth="0px" MaxFileInputsCount="1" MaxFileSize="1048576" OnFileUploaded="rauPRFImageUpload_FileUploaded"
OverwriteExistingFiles="True" Width="100%" OnClientFileUploaded="FileUploaded">
<Localization Select="SELECT" />
</telerik:RadAsyncUpload>
</td>
<td style="text-align:left;width:50%">
<asp:button id="btnImageDelete" runat="server" onclick="btnImageDelete_Click" text="Delete" />
</td>
</tr>
</table>
Hello,
We are using RADControls for AJAX (2010.2.929.20); I am facing a weird issue with RadEditor toolbar; and I am wondering if you guys can shed some light on the possible root cause of the problem.
I have 2 toolbars defined where the 2nd toolbar being the lengthier one. I have a webpage that used to use XML databinding which we had converted to an ASPX page and when I have the oncellchange event on the xml island the toolbar layout seems to be off (refer attached screenshots).
When I observe the rendered markup of the page, if I do not have the oncellchange event defined, the DIV element of the editor wrapper appears as:
<DIV style="MIN-WIDTH: 680px; MIN-HEIGHT: 400px; WIDTH: 1656px; HEIGHT: 400px" id="ctl00_mc_myradEditor" class="RadEditor Default reWrapper">
And the toolbar is rendered as:
<UL style="WIDTH: 810px" class="reToolbar Default"> - For the first toolbar
<UL style="WIDTH: 1148px" class="reToolbar Default"> - For the 2nd toolbar
When the oncellchange event is defined it shows as:
<DIV style="WIDTH: 1656px; HEIGHT: 400px" id="ctl00_mc_myradDEEditor" class="RadEditor Default reWrapper">
and the toolbars are rendered as:
<UL class="reToolbar Default"> - For the first toolbar
<UL class="reToolbar Default"> - For the 2nd toolbar
Any thoughts on why in one case the width's are set to a fixed size and not in other?
Thanks,

<MasterTableView EditMode="PopUp" EditFormSettings-PopUpSettings-Width="600" DataKeyNames="Id"><EditFormSettings EditFormType="Template" ><FormTemplate ><table cellspacing="8"><tr><td class="style2">Title:</td><td> <telerik:RadTextBox ID="txtTitle" Visible="true" Text='<%# DataBinder.Eval( Container, "DataItem.Title" ) %>' MaxLength="100" Width="400" runat="server"> </telerik:RadTextBox></td></tr><tr><td class="style1" valign="top" >State:</td><td> <telerik:RadComboBox ID="RadComboBoxState" runat="server"> </telerik:RadComboBox></td></tr><tr><td class="style1" valign="top" >City:</td><td> <telerik:RadComboBox ID="RadComboBoxCity" runat="server"> </telerik:RadComboBox></td></tr>protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) { if (e.Item is GridEditFormItem && e.Item.IsInEditMode) { GridEditFormItem editFormItem = e.Item as GridEditFormItem; GridDataItem parentItem = editFormItem.ParentItem; Literal debug = (Literal)editFormItem.FindControl("ltr_debug"); int _EntityId = Convert.ToInt32(parentItem["OwnerEntityId"].Text); //******************************* //Load states //******************************* RadComboBox cbStates = editFormItem.FindControl("RadComboBoxState") as RadComboBox; DataTable dtStates = ApplicationInterface.GetActiveStates(); cbStates.DataSource = dtStates; cbStates.DataValueField = "id"; cbStates.DataTextField = "name"; cbStates.DataBind(); cbStates.SelectedValue = parentItem["SelectedState"].Text; cbStates.AutoPostBack=true; cbStates.SelectedIndexChanged += new System.EventHandler(StateSelected); //******************************* //Load cities //******************************* RadComboBox lbCities= (RadComboBox)editFormItem.FindControl("RadComboBoxCity"); DataTable dtCitiesByState = ApplicationInterface.GetCitiesForState(parentItem["SelectedState"].Text); lbCities.DataSource = dtCitiesByState; lbCities.AutoPostBack = true; lbCities.DataValueField = "id"; lbCities.DataTextField = "name"; lbCities.DataBind(); lbCities.SelectedValue = parentItem["SelectedCity"].Text; } }protected void StateSelected(object sender, EventArgs e){ RadComboBox dc = (RadComboBox)sender; GridEditFormItem editedItem = dc.NamingContainer as GridEditFormItem; RadComboBox cities=editedItem.FindControl("RadComboBoxCity") as RadComboBox; ... ..Binding code here }var
_spellid = _spell.id;
var spell = GetRadSpell(_spellid);
//var spell = GetRadSpell(_spell);
spell.set_textSource(
new Telerik.Web.UI.Spell.MultipleHtmlElementsSource(sources));
SetDebugPoint(LabelCTR,
"in startSpellCheck");
spell.startSpellCheck();
Kindly provide some help in this regard as its very crucial for our application
Thanks
Sonia Dhamija
