<%
@ Control Language="C#" AutoEventWireup="true" CodeFile="rotator.ascx.cs" Inherits="layout_controls_rotator" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</
telerik:RadScriptManager>
<telerik:RadRotator ID="RadRotator1" Width="328px" Height="120px" ScrollDirection="Up" ScrollDuration="600" FrameDuration="6000" ItemHeight="118" ItemWidth="108" DataSourceID="XmlDataSource1" runat ="server">
<ItemTemplate>
<img src='<%# XPath("Link")%>' alt = '<%# XPath("title")%>'/>
</ItemTemplate>
</telerik:RadRotator>
<
asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/Rotator.xml"></asp:XmlDataSource>
ASPX page
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="layout_controls_Test" %>
<%
@ Register Src="rotator.ascx" TagName="rotator" TagPrefix="uc1" %>
<!
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>Rotator</title>
</
head>
<
body>
<form id="form1" runat="server">
<uc1:rotator ID="Rotator1" runat="server" />
</form>
</
body>
</
html>
XML File
<?
xml version="1.0" encoding="utf-8" ?>
<
RoatatorItems>
<
item>
<
title>This is a test 1</title>
<
Link>C:\Documents and Settings\My Documents\My Pictures\Office1.jpg</Link>
</
item>
<
item>
<
title>This is a test 2</title>
<
Link>C:\Documents and Settings\My Documents\My Pictures\Office2.jpg</Link>
</
item>
<
item>
<
title>This is a test 3</title>
<
Link>C:\Documents and Settings\My Documents\My Pictures\Office3.jpg</Link>
</
item>
</
RoatatorItems>

| <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> |
| <telerik:RadTreeView |
| runat="server" |
| Skin="3DBlue" EnableEmbeddedSkins="false" |
| EnableEmbeddedBaseStylesheet="false"> |
| </telerik:RadTreeView> |
| <li class="rtLI"> |
| <div class="rtMid rtSelected"> |
| <span class="rtSp"/> |
| <span class="rtMinus"/> |
| <a class="rtIn" href="test1.aspx">test-root</a> |
| </div> |
| <ul class="rtUL"> |
| <li class="rtLI"> |
| </li> |
| <li class="rtLI"> |
| </li> |
| <li class="rtLI rtLast"> |
| </li> |
| </ul> |
| </li> |
| /* |
| * RadTreeView 3DBlue skin |
| */ |
| #Sidebar .RadTreeView_3DBlue li |
| { |
| background-image: none; |
| } |
| /* These images do not display because the tags rtPlus and rtMinus are empty! */ |
| .RadTreeView_3DBlue .rtLines .rtPlus |
| { |
| background: transparent url(img/Plus.gif) 0 0 no-repeat; |
| } |
| .RadTreeView_3DBlue .rtLines .rtMinus |
| { |
| background: transparent url(img/Minus.gif) 0 0 no-repeat; |
| } |
| /* The selected node is NOT bold, why? */ |
| #Sidebar .RadTreeView_3DBlue .rtSelected .rtIn |
| { |
| text-weight: bold; |
| } |
| /* These images DO display properly, but the nodes are too |
| far away, leaving a gap between each node line */ |
| .RadTreeView_3DBlue .rtLines .rtTop |
| { |
| background: url(img/TopLine.gif) 0 0 no-repeat; |
| } |
| .RadTreeView_3DBlue .rtLines .rtMid |
| { |
| background: url(img/MiddleCrossLine.gif) 0 0 no-repeat; |
| } |
| .RadTreeView_3DBlue .rtLines .rtBot |
| { |
| background: url(img/BottomLine.gif) 0 0 no-repeat; |
| } |
| <telerik:RadScheduler ID="RadScheduler1" |
| runat="server" |
| Height="800" |
| HoursPanelTimeFormat="htt" |
| ValidationGroup="RadScheduler1" |
| Skin="WebBlue" SelectedView="WeekView" |
| ShowFullTime="True" StartInsertingInAdvancedForm="True" |
| MaximumRecurrenceCandidates="10000" > |
| <WebServiceSettings Path="SchedulerWebService.asmx" |
| ResourcePopulationMode="ServerSide" /> |
| <advancedform maximumheight="550px" modal="True" |
| enablecustomattributeediting="True" enableresourceediting="False" /> |
| <AppointmentContextMenuSettings EnableDefault="true" /> |
| </telerik:RadScheduler> |
| protected void RadGridOrders_ExcelMLExportRowCreated(object source, Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowCreatedArgs e) |
| { |
| if (e.RowType == Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowType.DataRow) |
| { |
| if (e.Row.Cells[0] != null && ((string)e.Row.Cells[0].Data.DataItem).Contains("U")) |
| { |
| e.Row.Cells[0].StyleValue = "MyCustomStyle"; |
| } |
| } |
| } |
| <telerik:RadGrid ID="RadGridOrders" runat="server" AllowPaging="True" |
| Width="95%" OnExcelMLExportStylesCreated="RadGridOrders_ExcelMLExportStylesCreated" |
| OnExcelMLExportRowCreated="RadGridOrders_ExcelMLExportRowCreated" |
| DataSourceID="DataSourceOrders" GridLines="None"> |
| <ExportSettings ExportOnlyData="True" FileName="SatışRaporları" |
| IgnorePaging="True"> |
| </ExportSettings> |
| <MasterTableView Width="100%" AutoGenerateColumns="False"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="CalculatedCargoPrice" |
| DataType="System.Decimal" HeaderText="CalculatedCargoPrice" ReadOnly="True" |
| SortExpression="CalculatedCargoPrice" UniqueName="CalculatedCargoPrice"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="CalculatedItemPrice" |
| DataType="System.Decimal" HeaderText="CalculatedItemPrice" ReadOnly="True" |
| SortExpression="CalculatedItemPrice" UniqueName="CalculatedItemPrice"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="NameSurname" HeaderText="NameSurname" |
| ReadOnly="True" SortExpression="NameSurname" UniqueName="NameSurname"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
Hi,
We have some problems to add custom css styles to RadEditor in Moss.
We made a file 'cssEditor.css' in which we defined custom css styles. However the dropdown is still showing us the default 'clear class'.
We tried already different solutions but it still remains the same. We already tried the following : added a line in configfile to point to 'cssEditor.css', added classes to 'toolsfile',.... We use version 5.5.1.0.
CssEditor:
body
{
font-family: Arial !important;
font-size: 11pt !impotant;
}
title
{
font-family: Verdana ;
font-size: 16pt ;
}
Toolsfile :
<root>
<modules>
<module name="RadEditorDomInspector" />
</modules>
<tools name="MossTools1">
<tool name="AjaxSpellCheck" shortcut="F7"/>
<tool name="FindAndReplace" />
<tool separator="true" />
<tool name="Cut" shortcut="CTRL+X" />
<tool name="Copy" shortcut="CTRL+C" />
<tool name="PastePlainText" shortcut="CTRL+V" />
<tool name="PasteAsHtml" />
<tool separator="true" />
<tool name="Undo" shortcut="CTRL+Z" />
<tool name="Redo" shortcut="CTRL+Y" />
<tool separator="true" />
<tool name="MOSSLinkManager" shortcut="CTRL+K" />
<tool name="Unlink" shortcut="CTRL+SHIFT+K" />
<tool name="ImageManager" shortcut="CTRL+G" />
<tool name="MOSSTemplateManager" />
<tool name="DocumentManager" />
<tool separator="true" />
<tool name="MOSSInsertTable" />
<tool name="SetTableProperties" />
<tool name="ToggleTableBorder" />
<tool separator="true" />
<tool name="MOSSInsertTableElement">
<tool name="InsertRowAbove" />
<tool name="InsertRowBelow" />
<tool name="InsertColumnLeft" />
<tool name="InsertColumnRight" />
<tool name="DeleteRow" />
<tool name="DeleteColumn" />
<tool name="SplitCell" />
</tool>
<tool name="MergeColumns" />
<tool separator="true" />
<tool name="ToggleSource" />
<tool name="FormatStripper" />
<tool separator="true" />
<tool name="MOSSRightToLeft" />
<tool name="MOSSLeftToRight" />
</tools>
<tools name="MossTools2">
<tool name="ApplyClass" />
<tool name="FormatBlock" />
<tool separator="true" />
<tool name="FontName" />
<tool name="RealFontSize" />
<tool separator="true" />
<tool name="Bold" shortcut="CTRL+B" />
<tool name="Italic" shortcut="CTRL+I" />
<tool name="Underline" shortcut="CTRL+U" />
<tool separator="true" />
<tool name="JustifyLeft" />
<tool name="JustifyCenter" />
<tool name="JustifyRight" />
<tool separator="true" />
<tool name="InsertOrderedList" />
<tool name="InsertUnorderedList" />
<tool separator="true" />
<tool name="Indent" />
<tool name="Outdent" />
</tools>
<fontNames>
<item name="Arial" />
</fontNames>
<realFontSizes>
<item value="11pt"></item>
<item value="12pt"></item>
<item value="14pt"></item>
<item value="16pt"></item>
</realFontSizes>
<tools name="MossTools3">
<tool name="ForeColor" />
<tool name="BackColor" />
<tool separator="true" />
<tool name="InsertSymbol" />
<tool name="Help" />
</tools>
<colors>
<color value="#0085bd" />
<color value="#86a20b" />
<color value="#454748" />
</colors>
<contextMenus>
<contextMenu forElement="*">
<tool name="Cut"/>
<tool name="Copy"/>
<tool name="Paste"/>
<tool name="InsertParagraph"/>
<tool name="FormatBlock" />
<tool name="Superscript" />
<tool name="Subscript" />
</contextMenu>
</contextMenus>
</root>
Configfile :
<?xml version="1.0" encoding="utf-8" ?>
<!-- ==============================================================================================
Config File valid structure:
<configuration>
<property>...</property>
...
<property>
<item>...</item>
<item>...</item>
...
</property>
...
</configuration>
=============================================================================================== -->
<configuration>
<property name="ToolbarMode">ShowOnFocus</property>
<property name="ToolsWidth">680px</property>
</configuration>