
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

<telerik:RadGrid ID="Grid" runat="server" AutoGenerateColumns="False" ShowHeader="false" GridLines="None" CellPadding="0" Width="205" DataSourceID="Source"> <MasterTableView CommandItemDisplay="Top" DataKeyNames="ID" DataSourceID="Source"> <CommandItemTemplate> <telerik:RadToolBar ID="Toolbar" runat="server" Width="100%"> <Items> <telerik:RadToolBarButton runat="server" Width="95%"> <ItemTemplate> <telerik:RadTextBox ID="Textbox" runat="server" Width="100%"></telerik:RadTextBox> </ItemTemplate> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" Value="filter" ImageUrl="~/Imgs/funnel.png"></telerik:RadToolBarButton> </Items> </telerik:RadToolBar> </CommandItemTemplate> <NoRecordsTemplate>No records!</NoRecordsTemplate> <Columns> <telerik:GridBoundColumn UniqueName="ID" DataField="ID" Visible="false"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Field" DataField="Nominativo"></telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings EnablePostBackOnRowClick="true"> <Selecting AllowRowSelect="True"></Selecting> </ClientSettings></telerik:RadGrid><object id="myMovieName" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="630" height="209"> <param name="_cx" value="16668" /> <param name="_cy" value="5529" /> <param name="FlashVars" /> <param name="Movie" /> <param name="Src" value="%7E/media/introduction2.ashx" /> <param name="WMode" value="Window" /> <param name="Play" value="-1" /> <param name="Loop" value="-1" /> <param name="Quality" value="High" /> <param name="SAlign" /> <param name="Menu" value="-1" /> <param name="Base" /> <param name="AllowScriptAccess" /> <param name="Scale" value="ShowAll" /> <param name="DeviceFont" value="0" /> <param name="EmbedMovie" value="0" /> <param name="BGColor" /> <param name="SWRemote" /> <param name="MovieData" /> <param name="SeamlessTabbing" value="1" /> <param name="Profile" value="0" /> <param name="ProfileAddress" /> <param name="ProfilePort" value="0" /> <param name="AllowNetworking" value="all" /> <param name="AllowFullScreen" value="false" /> </object><object id="myMovieName" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="630" height="209"> <param name="_cx" value="16668" /> <param name="_cy" value="5529" /> <param name="FlashVars" /> <param name="Movie" /> <param name="Src" /> <param name="WMode" value="Window" /> <param name="Play" value="-1" /> <param name="Loop" value="-1" /> <param name="Quality" value="High" /> <param name="SAlign" /> <param name="Menu" value="-1" /> <param name="Base" /> <param name="AllowScriptAccess" /> <param name="Scale" value="ShowAll" /> <param name="DeviceFont" value="0" /> <param name="EmbedMovie" value="0" /> <param name="BGColor" /> <param name="SWRemote" /> <param name="MovieData" /> <param name="SeamlessTabbing" value="1" /> <param name="Profile" value="0" /> <param name="ProfileAddress" /> <param name="ProfilePort" value="0" /> <param name="AllowNetworking" value="all" /> <param name="AllowFullScreen" value="false" /> </object>