or
<!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; } }
<ImageManager DeletePaths="~/App_Data/Classified/Images" ViewPaths="~/App_Data/Classified/Images" UploadPaths="~/App_Data/Classified/Images" />this.RadScheduler1.TimelineView.SlotDuration = TimeSpan.Parse("1.00:00:00"); RadScheduler1.TimelineView.TimeLabelSpan = 1; RadScheduler1.TimelineView.ColumnHeaderDateFormat = "MM/dd/yyyy"; RadScheduler1.TimelineView.NumberOfSlots = 10;

public class ProductGroup { #region Properties [Key] public int ProductGroupID { get; set; } [Column("ProductGroup")] public string ProductGroupName { get; set; } [Column] public bool Active { get; set; } #endregion #region Methods public static IEnumerable<ProductGroup> GetActiveProductGroups() { iThNkContext db = new iThNkContext(); var ProductGroupList = db.ProductGroups.Where(grp => grp.Active == true).OrderBy(p => p.ProductGroupName); return ProductGroupList.ToList(); } #endregion }public class Product { #region Properties [Key] public int ProductID { get; set; } [Column("Product")] public string ProductName { get; set; } [Column] public bool Active { get; set; } [Column] public int ProductGroupID { get; set; } #endregion #region Methods // Checks for active products and will only return active ones in the form of a list. public static IEnumerable<Product> GetActiveProducts(int productGroupID) { iThNkContext db = new iThNkContext(); var productList = db.Products.Where(p => p.ProductGroupID == productGroupID && p.Active == true).OrderBy(p => p.ProductName); return productList.ToList(); } #endregion }protected void cboProductGroup_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) { cboProductGroup.DataSource = iThNkPOCO.Models.ProductGroup.GetActiveProductGroups(); cboProductGroup.DataBind(); } protected void cboProductGroup_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { cboProduct.DataSource = iThNkPOCO.Models.Product.GetActiveProducts(Convert.ToInt32(e.Value)); cboProduct.DataBind(); }
<?xml version="1.0"?><!-- For more information on how to configure your ASP.NET application, please visit --><configuration> <connectionStrings> <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> <add name="DB" connectionString="server=.;user id=sa;password=sa123!;database=AspNetHelper" providerName="System.Data.SqlClient" /> </connectionStrings> <appSettings> <add key="SiteAddress" value="http://localhost:9339/" /> <add key="ImagePath" value="c:\AspNetHelperImage"/> <add key="ProjectFile" value="C:\AspNetHelperProjectFile" /> </appSettings> <system.web> <compilation debug="true" targetFramework="4.0" /> <trust level="Full" originUrl="" /> <httpRuntime executionTimeout="90" maxRequestLength="4096000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" /> <httpModules> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> </httpModules> <httpHandlers> <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" /> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> </httpHandlers> <authentication mode="Forms"> <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> </authentication> <membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> <profile> <providers> <clear/> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /> </providers> </profile> <roleManager enabled="false"> <providers> <clear/> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> </providers> </roleManager><customErrors mode="Off" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> <pages theme="BlueTheme"> </pages> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true" /> <validation validateIntegratedModeConfiguration="false" /> <handlers> <add name="Telerik.Web.UI.WebResource.axd*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" /> <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" /> <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" /> </handlers> </system.webServer></configuration><telerik:RadProgressManager ID="Radprogressmanager1" runat="server" /> Project File <input type="file" id="file1" runat="server" name="file1" /><telerik:RadProgressArea ID="progressArea1" runat="server" Skin="Office2007"Language="" />
<telerik:RadComboBox ID="rcbPorts" runat="server" EnableLoadOnDemand="true" HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField" OnClientDropDownClosing OnDataBound="rcbPorts_DataBound" OnItemDataBound="rcbPorts_ItemDataBound" MarkFirstMatch="true" EmptyMessage="Select Ports" AutoPostBack="true" Width="500px" DataTextField="PortName" DataValueField="PortCode"> <HeaderTemplate> <ul> <li class="col1">Select</li> <li class="col2">Country Name</li> <li class="col3">Port Name</li> <li class="col4">Port Type</li> </ul> </HeaderTemplate> <ItemTemplate> <ul> <li class="col1"> <asp:CheckBox runat="server" ID="chkport" Text="" onclick="stopPropagation(event);" /> </li> <li class="col2"> <%# DataBinder.Eval(Container.DataItem, "PCountryName")%></li> <li class="col3"> <%# DataBinder.Eval(Container.DataItem, "PortName")%></li> <li class="col4"> <%# DataBinder.Eval(Container.DataItem, "PortType")%></li> </ul> </ItemTemplate> <FooterTemplate> A total of <asp:Literal runat="server" ID="RadComboItemsCount" /> items </FooterTemplate> </telerik:RadComboBox>