<
telerik:RadEditor ID="RadTextBoxMessageP" OnClientLoad="OnClientLoad" Runat=server Skin="DWDS" EnableEmbeddedSkins="false" ToolsFile="/ToolsFileLimited.xml" />
I also have the following declared:
<
link href="/Skins/DWDS/Editor.DWDS.css" rel="stylesheet" type="text/css" />
<
script type="text/javascript">
function
OnClientLoad(editor, args)
{
var style = editor.get_ContentArea().style;
style.backgroundImage =
"none";
}
</
script>
Any ideas of why I am getting this error? I have done skins for several other controls and haven't had a probelm with them.
Thanks

<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="DynamicLoadControl.aspx.cs" Inherits="DynamicLoadControl" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div>
<asp:Button id="cmdLoadControl" runat="server" OnClick="cmdLoadControl_Click" Text="Load Control 1" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
<table cellpadding="0" cellspacing="0" style="height: 100%; background-color: white;
border-top-width: thin; border-left-width: thin; border-left-color: black; border-bottom-width: thin;
border-bottom-color: black; border-top-color: black; border-right-width: thin;
border-right-color: black; width: 100%; position: static;"
width="100%">
<tr>
<td>
<asp:UpdatePanel id="pnluCompanyData" runat="server" UpdateMode="Conditional">
<contenttemplate>
<asp:PlaceHolder id="CtrlPlaceholder" runat="server">
</asp:PlaceHolder>
</contenttemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</form>
</
body>
</
html>
using
System;
using
System.Data;
using
System.Configuration;
using
System.Collections;
using
System.Web;
using
System.Web.Security;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using
System.Web.UI.HtmlControls;
public
partial class DynamicLoadControl : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void cmdLoadControl_Click(object sender, EventArgs e)
{
CtrlPlaceholder.Controls.Clear();
Control cntDynamicControl = LoadControl("DynamicControl.ascx");
cntDynamicControl.ID =
"DynamicControl";
CtrlPlaceholder.Controls.Add(cntDynamicControl);
pnluCompanyData.Update();
}
}
<%
@ Control Language="C#" AutoEventWireup="true" CodeFile="DynamicControl.ascx.cs" Inherits="DynamicControl" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
telerik:RadComboBox id="drpEvaluationMonth" runat="server"
AutoPostBack="True" >
<Items >
<telerik:RadComboBoxItem runat="server" Text="1" />
<telerik:RadComboBoxItem runat="server" Text="2" />
<telerik:RadComboBoxItem runat="server" Text="3" />
<telerik:RadComboBoxItem runat="server" Text="4" />
<telerik:RadComboBoxItem runat="server" Text="5" />
<telerik:RadComboBoxItem runat="server" Text="6" />
</Items>
<CollapseAnimation Duration="200" Type="OutQuint" />
<ExpandAnimation Type="OutQuart" />
</
telerik:RadComboBox>
<telerik:GridCheckBoxColumn HeaderText="Primary" DataType="System.Boolean" DataField="IsPrimary" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" ForceExtractValue="None" UniqueName="PhoneIsPrimary">
<HeaderStyle Width="10px" />
</telerik:GridCheckBoxColumn>
protected void RadGrid1_ItemCreated1(object sender, GridItemEventArgs e)
{
if (e.Item.OwnerTableView.Name == "Phone")
{ if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem item2a = e.Item as GridEditableItem;
GridCheckBoxColumnEditor editor2a = (GridCheckBoxColumnEditor)item2a.EditManager.GetColumnEditor("PhoneIsPrimary");
TableCell cell2a = (TableCell)editor2a.CheckBoxControl.Parent;
CustomValidator validator2a = new CustomValidator();
editor2a.CheckBoxControl.ID =
"ValidatePhoneIsPrimary";
validator2a.ControlToValidate = editor2a.CheckBoxControl.ID;
validator2a.ErrorMessage =
"Inactive or Closed Phone can not be Primary Phone";
validator2a.ServerValidate +=
new ServerValidateEventHandler(CustomValidator1_ServerValidate);
cell2a.Controls.Add(validator2a);
}}}
protected void CustomValidator1_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)
{
if (args.Value == "0"){args.IsValid = true;}}
If I can get this working I will also need to look at and compare args.value to my combobox dropdown selected value - I am not sure how to retrieve that value here in my validation routine.
Can anyone tell me how to "select" the first RadMenuItem on the page load event? I have the following menu code and want the first item to appear as if it had been clicked (highlighted)
<
telerik:RadMenu ID="rmSubMenu" runat="server" Flow="Horizontal" Skin="Inox" Width="100%">
<DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
<CollapseAnimation Duration="200" Type="OutQuint" />
<Items>
<telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Create Mission" ToolTip="Create a new mission">
<GroupSettings ExpandDirection="Auto" Flow="Vertical" />
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Edit Missions" ToolTip="Edit existing missions">
<GroupSettings ExpandDirection="Auto" Flow="Vertical" />
</telerik:RadMenuItem>
</Items>
<ExpandAnimation Type="OutQuart" />
</telerik:RadMenu>