or
public
static DataView GetSparcHelpContent(string pagePath)
{
Database db = DatabaseFactory.CreateDatabase();
DataView dv = db.ExecuteDataSet("uspGetSparcHelpContent", pagePath).Tables[0].DefaultView;
return dv;
<
asp:ObjectDataSource ID="odsHelpContent" runat="server" TypeName="Wf.Sparc.DAL.DbAccess" SelectMethod="
GetSparcHelpContent
">
</
asp:ObjectDataSource>
<
asp:LinkButton ID="PageIns" runat="server" Text="View / Edit Help" Font-Underline="true"
toolTip="View more information related to this page" Visible="true" ></asp:LinkButton>
<asp:Panel ID="ModalPanel" runat="server" style="display:none; width:480px; height:530px; background-color:White;
border-width:2px; border-color:Black; border-style:solid; padding:20px;" DataSourceID="odsHelpContent" >
<asp:Button ID="OKButton" runat="server" Text="Close" ForeColor="Black" /> <br /><br />
<telerik:RadEditor ID="radBody" ToolbarMode="Default" ToolsFile="~/RadControls/ToolsFile.xml" runat="server"
ContentFilters="RemoveScripts" EditModes="All" Height="450" SkinID="RadEditorSkin" Visible="true"
Width="200" EnableResize="true" Content='<%# Bind("pageContent") %>'/>
<script type="text/javascript">
//This script must be below the RadEditor declaration
//It displays the custom toolbar icon formatting FAQ
//It replaces embedded scripts from a previous version of Telerik RadEditor
Telerik.Web.UI.Editor.CommandList[
"FormattingFAQ"] = function (commandName, editor, args) {
var args = editor.get_html(true) //returns the HTML of the selection.
editor.showExternalDialog(
"/RadControls/FormattingFAQ.aspx",
args,
350,
250,
null,
null,
"Formatting FAQ",
true,
Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
true,
true);
};
</script>
<br /><br />
<asp:Button ID="SaveButton" runat="server" Text="Save" ForeColor="Black" OnClientClick="needToConfirm = false;" OnClick="btnSave_Click" />
<asp:Button ID="CancelButton" runat="server" Text="Cancel" ForeColor="Black" /> <br /><br /> <br /><br />
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="mpePopup" runat="server" TargetControlId="PageIns" PopupControlID="ModalPanel"
CancelControlID="CancelButton" OkControlID="OKButton" X="1050" Y="50" Drag="true" PopupDragHandleControlID="ModalPanel"/>
protected
void btnSave_Click(object sender, EventArgs e)
{
string pagePath = System.Web.HttpContext.Current.Request.Path.ToString();
Wf.Sparc.DAL.
DbAccess.UpdSparcHelpContent("ins", pagePath, radBody.Content, int.Parse(Session["userid"].ToString()));
}


<YAxis Color="#dddddd" Visible="false"> <MajorGridLines Color="#dddddd" /> <MinorGridLines Visible="false" /></YAxis><Series> <telerik:ColumnSeries Stacked="false"> <Appearance> <FillStyle BackgroundColor="#d5a2bb"></FillStyle> </Appearance> <LabelsAppearance Position="OutsideEnd"> <TextStyle FontSize="16px" FontFamily="Verdana" /> </LabelsAppearance> <TooltipsAppearance Visible="false" BackgroundColor="White" DataFormatString="{0}" /> <Items> <telerik:SeriesItem BackgroundColor="#a4b9bd" YValue="7300" /> <telerik:SeriesItem BackgroundColor="#fed473" YValue="6900" /> <telerik:SeriesItem BackgroundColor="#d8e782" YValue="5836" /> </Items> </telerik:ColumnSeries></Series>.rsAptDelete{ display: none !important;}

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <title></title> <style> .rsArrowLeft, .rsArrowRight { visibility: hidden; } </style></head><body class="stageCRM40" style="margin: 0px;"> <form id="frmGrid" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div id="scheduler"> <telerik:RadScheduler ID="RadScheduler1" runat="server" AllowDelete="False" AllowEdit="False" AllowInsert="False" EnableDatePicker="False" ReadOnly="True" SelectedView="TimelineView" ShowNavigationPane="False" ShowViewTabs="False" ShowHeader="False" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" Culture="German (Germany)" OnClientAppointmentDoubleClick="appDoubleClick" OnClientAppointmentContextMenuItemClicked="contextMenuClicked" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" RowHeaderWidth="150px" OverflowBehavior="Scroll"> <TimelineView ReadOnly="True" ShowInsertArea="False" /> <AppointmentContextMenuSettings EnableDefault="True" /> <AppointmentContextMenus> <telerik:RadSchedulerContextMenu runat="server" ID="appContextMenu"> <Items> </Items> </telerik:RadSchedulerContextMenu> </AppointmentContextMenus> </telerik:RadScheduler> </div> </form></body></html>class CustomAppTemplate : ITemplate { private int customLines = 0; public CustomAppTemplate(int customLines) { this.customLines = customLines; } public void InstantiateIn(Control container) { System.Web.UI.HtmlControls.HtmlGenericControl start = new System.Web.UI.HtmlControls.HtmlGenericControl("span"); start.DataBinding += new EventHandler(start_DataBinding); start.Style.Add("white-space", "nowrap"); container.Controls.Add(start); System.Web.UI.HtmlControls.HtmlGenericControl div = new System.Web.UI.HtmlControls.HtmlGenericControl("span"); div.InnerText = " - "; div.Style.Add("white-space", "nowrap"); container.Controls.Add(div); System.Web.UI.HtmlControls.HtmlGenericControl end = new System.Web.UI.HtmlControls.HtmlGenericControl("span"); end.DataBinding += new EventHandler(end_DataBinding); end.Style.Add("white-space", "nowrap"); container.Controls.Add(end); System.Web.UI.HtmlControls.HtmlGenericControl lineBreak2 = new System.Web.UI.HtmlControls.HtmlGenericControl("div"); container.Controls.Add(lineBreak2); System.Web.UI.HtmlControls.HtmlGenericControl subject = new System.Web.UI.HtmlControls.HtmlGenericControl("span"); subject.DataBinding += new EventHandler(subject_DataBinding); subject.Style.Add("white-space", "nowrap"); container.Controls.Add(subject); for (int i = 0; i < customLines - 1; i++) { System.Web.UI.HtmlControls.HtmlGenericControl lineBreak = new System.Web.UI.HtmlControls.HtmlGenericControl("div"); container.Controls.Add(lineBreak); System.Web.UI.HtmlControls.HtmlGenericControl customLine = new System.Web.UI.HtmlControls.HtmlGenericControl("span"); customLine.Style.Add("white-space", "nowrap"); customLine.DataBinding += customLine_DataBinding; customLine.InnerText = i.ToString(); container.Controls.Add(customLine); } } void subject_DataBinding(object sender, EventArgs e) { System.Web.UI.HtmlControls.HtmlGenericControl customLine = (System.Web.UI.HtmlControls.HtmlGenericControl)sender; IDataItemContainer aptContainer = (IDataItemContainer)customLine.BindingContainer; //Access the appointment object and set its AllowEdit property: Telerik.Web.UI.SchedulerAppointmentContainer aptCont = (Telerik.Web.UI.SchedulerAppointmentContainer)customLine.Parent; Telerik.Web.UI.Appointment app = aptCont.Appointment; app.AllowEdit = false; string strSubject = (string)DataBinder.Eval(aptContainer.DataItem, "Subject"); customLine.InnerText = strSubject; } void end_DataBinding(object sender, EventArgs e) { System.Web.UI.HtmlControls.HtmlGenericControl customLine = (System.Web.UI.HtmlControls.HtmlGenericControl)sender; IDataItemContainer aptContainer = (IDataItemContainer)customLine.BindingContainer; //Access the appointment object and set its AllowEdit property: Telerik.Web.UI.SchedulerAppointmentContainer aptCont = (Telerik.Web.UI.SchedulerAppointmentContainer)customLine.Parent; Telerik.Web.UI.Appointment app = aptCont.Appointment; app.AllowEdit = false; string strSubject = (string)DataBinder.Eval(aptContainer.DataItem, "scheduledend"); customLine.InnerText = strSubject + " "; } void start_DataBinding(object sender, EventArgs e) { System.Web.UI.HtmlControls.HtmlGenericControl customLine = (System.Web.UI.HtmlControls.HtmlGenericControl)sender; IDataItemContainer aptContainer = (IDataItemContainer)customLine.BindingContainer; //Access the appointment object and set its AllowEdit property: Telerik.Web.UI.SchedulerAppointmentContainer aptCont = (Telerik.Web.UI.SchedulerAppointmentContainer)customLine.Parent; Telerik.Web.UI.Appointment app = aptCont.Appointment; app.AllowEdit = false; string strSubject = (string)DataBinder.Eval(aptContainer.DataItem, "scheduledstart"); customLine.InnerText = strSubject; } private void customLine_DataBinding(object sender, EventArgs e) { System.Web.UI.HtmlControls.HtmlGenericControl customLine = (System.Web.UI.HtmlControls.HtmlGenericControl)sender; IDataItemContainer aptContainer = (IDataItemContainer)customLine.BindingContainer; //Access the appointment object and set its AllowEdit property: Telerik.Web.UI.SchedulerAppointmentContainer aptCont = (Telerik.Web.UI.SchedulerAppointmentContainer)customLine.Parent; Telerik.Web.UI.Appointment app = aptCont.Appointment; app.AllowEdit = false; int currentLine = Convert.ToInt32(customLine.InnerText); string strSubject = (string)DataBinder.Eval(aptContainer.DataItem, "additionalline" + currentLine.ToString()); if (strSubject.Contains("[LINK]")) { if (strSubject.IndexOf("[LINK]") + 6 == strSubject.Length) { customLine.InnerText = strSubject.Replace("[LINK]", ""); return; } strSubject = strSubject.Replace("[LINK]", ""); string[] links = strSubject.Split(new string[] { "|||" }, StringSplitOptions.RemoveEmptyEntries); strSubject = string.Empty; foreach (string link in links) { string[] values = link.Split(new string[] { "<|>" }, StringSplitOptions.RemoveEmptyEntries); strSubject += "<a href=\"" + values[1] + "\"target=\"_blank\">" + values[0] + "</a>, "; } strSubject = strSubject.TrimEnd(", ".ToCharArray()); customLine.InnerHtml = strSubject; } else customLine.InnerText = strSubject; } }