V 2008 Q3
I add a simple RadEditor a blank page and test it. I highlight some text in the editor and click the Hyperlink Manager and there is no text box for the URL? I put the EditorDialogs in the root and point to them.
| <telerik:RadEditor ID="RadEditor1" runat="server" ExternalDialogsPath="~/EditorDialogs/"> |
| <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" /> |
| <Content> |
| </Content> |
| </telerik:RadEditor> |
What am I doing wrong? Thanks!
| <telerik:RadChart ID="chbBar" runat="server" DataSourceID="sdsReportBar" SeriesOrientation="Horizontal" AutoLayout="True" EnableViewState="False"> |
| <Series> |
| <cc1:ChartSeries DataLabelsColumn="MaxMS" DataXColumn="MaxPct" DataYColumn="MaxMS" Name="Series 1"> |
| <Appearance BarWidthPercent="35"> |
| </Appearance> |
| </cc1:ChartSeries> |
| </Series> |
| <PlotArea> |
| <XAxis AutoScale="False" MaxValue="100" MinValue="10" MaxItemsCount="12"> |
| <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"> |
| <MajorGridLines Color="134, 134, 134" Width="0" /> |
| <TextAppearance TextProperties-Color="Black"> |
| </TextAppearance> |
| </Appearance> |
| <AxisLabel> |
| <Appearance RotationAngle="270"> |
| </Appearance> |
| <TextBlock> |
| <Appearance TextProperties-Color="Black"> |
| </Appearance> |
| </TextBlock> |
| </AxisLabel> |
| <Items> |
| <cc1:ChartAxisItem Value="10"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="20"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="30"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="40"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="50"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="60"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="70"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="80"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="90"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="95"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="99"> |
| </cc1:ChartAxisItem> |
| <cc1:ChartAxisItem Value="100"> |
| </cc1:ChartAxisItem> |
| </Items> |
| </XAxis> |
| <YAxis> |
| <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134" MinorTick-Color="134, 134, 134"> |
| <MajorGridLines Color="134, 134, 134" /> |
| <MinorGridLines Color="134, 134, 134" /> |
| <TextAppearance TextProperties-Color="Black"> |
| </TextAppearance> |
| </Appearance> |
| <AxisLabel> |
| <Appearance RotationAngle="0"> |
| </Appearance> |
| <TextBlock> |
| <Appearance TextProperties-Color="Black"> |
| </Appearance> |
| </TextBlock> |
| </AxisLabel> |
| </YAxis> |
| <YAxis2> |
| <AxisLabel> |
| <Appearance RotationAngle="0"> |
| </Appearance> |
| </AxisLabel> |
| </YAxis2> |
| <Appearance> |
| <FillStyle MainColor="158, 184, 229" SecondColor="White"> |
| </FillStyle> |
| </Appearance> |
| </PlotArea> |
| <Appearance> |
| <Border Color="134, 134, 134" /> |
| </Appearance> |
| <ChartTitle> |
| <Appearance> |
| <FillStyle MainColor=""> |
| </FillStyle> |
| </Appearance> |
| <TextBlock Text="Milliseconds"> |
| <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 18px"> |
| </Appearance> |
| </TextBlock> |
| </ChartTitle> |
| <Legend Visible="False"> |
| <Appearance Dimensions-Margins="15%, 2%, 1px, 1px" Dimensions-Paddings="2px, 8px, 6px, 3px" Position-AlignedPosition="TopRight" Visible="False"> |
| <ItemTextAppearance TextProperties-Color="Black"> |
| </ItemTextAppearance> |
| <ItemMarkerAppearance Figure="Square"> |
| </ItemMarkerAppearance> |
| </Appearance> |
| </Legend> |
| </telerik:RadChart> |
Public
Sub LoadAttendeesTreeView(ByVal p_iSchdID As Integer)
Try
' Create DataSet & DataTables
Dim ds As New DataSet
Dim dtDepartment As DataTable = TrainingData.GetDepartments
Dim dtEmployees As DataTable = TrainingData.GetAttendees(p_iSchdID)
Dim curDept As Integer = 0
' Add the DataTables to the DataSet
ds.Tables.Add(dtDepartment)
ds.Tables.Add(dtEmployees)
' Create the data relationship
ds.Relations.Add("RelDepartment", ds.Tables(0).Columns("DEPARTMENT"), ds.Tables(1).Columns("eca_emply_dpt_id"))
For Each deptRow As DataRow In ds.Tables(0).Rows
curDept =CType(deptRow("DEPARTMENT").ToString, Integer)
Dim deptTESTNode As RadTreeNode = Me.tvAttendees.FindNodeByValue(curDept.ToString())
' GETTING ERROR ON LINE BELOW...
If deptTESTNode = Nothing Then
' Create a root node for the department
Dim deptNode As RadTreeNode = New RadTreeNode(deptRow("DEPT_NAME").ToString(), deptRow("DEPARTMENT").ToString())
' Add the node to the Tree View Control
tvAttendees.Nodes.Add(deptNode)
End If
Next
tvAttendees.DataBind()
Catch ex As Exception
Dim rethrow As Boolean = ExceptionPolicy.HandleException(ex, "General Exception")
End Try
End Sub
var mouseX = events.clientX;
var mouseY = events.clientY; var mouseX = events.offsetX;
var mouseY = events.offsetY; //Check if the image is over the editor or not
function isMouseOverEditor(editor, events)
{
var editorFrame = editor.get_contentAreaElement();
var editorRect = $telerik.getBounds(editorFrame);
var mouseX = events.clientX;
var mouseY = events.clientY;
if (mouseX < (editorRect.x + editorRect.width) &&
mouseX > editorRect.x &&
mouseY < (editorRect.y + editorRect.height) &&
mouseY > editorRect.y)
{
return true;
}
return false;
}
| foreach (EmailContainerAttachment att in _currentEmail.Attachments) |
| { |
| int attId = att.Id; |
| LinkButton attTxt = new LinkButton(); |
| attTxt.ID = string.Format("lnkAttachment[{0}]", attId); |
| attTxt.Text = att.FileName; |
| attTxt.Click += new EventHandler(openAttachment_click); |
| txtMailAttachments.Controls.Add(attTxt); |
| } |
| } |
| void openAttachment_click(object sender, EventArgs e) |
| { |
| string scriptstring = "radalert('Welcome to Rad<b>window</b>!', 330, 210);"; |
| ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true); |
| // throw new NotImplementedException(); |
| } |
I have used the following code to set the style sheet for the RAD Editor:
| Dim l_colCSSFiles As EditorCssFileCollection ' The collection of RAD Editor CSS files. |
| ' Read back the current colleciton of css files. |
| l_colCSSFiles = radEditor.CssFiles |
| ' Add the new css file to the collection. |
| l_colCSSFiles.Add(New EditorCssFile("~/assets/css/customRadEditor.css")) |
