or
<telerik:RadScheduler ID="RadScheduler1" runat="server" AllowInsert="true" Skin="Simple"<br> DataKeyField="ID" DataSubjectField="Subject" DataStartField="Startdate" DataEndField="Enddate"<br> AppointmentStyleMode="Auto" EnableAdvancedForm="false" OnAppointmentInsert="RadScheduler1_AppointmentInsert"<br> MinutesPerRow="15" NumberOfHoveredRows="1" AllowDelete="false" AllowEdit="false" DayStartTime="08:15:00"<br> BackColor="#4D4D4F" DayEndTime="17:00:00" EnableDatePicker="false" Localization-Show24Hours=""<br> ShowHeader="true" ShowViewTabs="false" ShowNavigationPane="false" ShowFooter="false"<br> OnLoad="RadScheduler1_Load" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"<br> DayView-WorkDayStartTime="08:15:00" DayView-DayEndTime="17:00:00" ShowAllDayRow="false"<br> Height="700px" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" HoursPanelTimeFormat="hh:mm"<br> OnFormCreated="RadScheduler1_FormCreated"></telerik:RadScheduler>
RadMaskedTextBox m1 = new RadMaskedTextBox();m1.ID = ID;m1.Mask = "d";//m1.MaskType << No such propertyc2.Controls.Add(m1);<telerik:RadMaskedTextBox MaskType="Numeric" Mask="d" Value="111.234" Margin="0,5,0,10" />m1.Attributes.Add("MaskType", "Numeric");<telerik:RadRating ID="RadRating1" runat="server" ItemCount="5" SelectionMode="Continuous" Precision="Half" Skin="Default"> </telerik:RadRating>protected void DisplayRadChart(Guid UserID, int CourseID) { //CLEAR INFO Chart_Code.PlotArea.Chart.Series.Clear(); Chart_Code.PlotArea.XAxis.Clear(); //GET THE INFO i2d2LMSProgress i2d2progress = new i2d2LMSProgress(); UserLessonProgressCollection progress = i2d2progress.GetUserProgress(UserID, CourseID); ChartSeries failedSeries = new ChartSeries("FTW"); failedSeries.Clear(); failedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; failedSeries.Appearance.LabelAppearance.Visible = false; failedSeries.Appearance.FillStyle.MainColor = Color.Red; failedSeries.Type = ChartSeriesType.StackedBar100; ChartSeries completedSeries = new ChartSeries("Completed"); completedSeries.Clear(); completedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; completedSeries.Appearance.LabelAppearance.Visible = false; completedSeries.Appearance.FillStyle.MainColor = Color.Green; completedSeries.Type = ChartSeriesType.StackedBar100; ChartSeries startedSeries = new ChartSeries("Started"); startedSeries.Clear(); startedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; startedSeries.Appearance.LabelAppearance.Visible = false; startedSeries.Appearance.FillStyle.MainColor = Color.Yellow; startedSeries.Type = ChartSeriesType.StackedBar100; ChartSeries notstartedSeries = new ChartSeries("Not Started"); notstartedSeries.Clear(); notstartedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; notstartedSeries.Appearance.LabelAppearance.Visible = false; notstartedSeries.Appearance.FillStyle.MainColor = Color.PowderBlue; notstartedSeries.Type = ChartSeriesType.StackedBar100; Chart_Code.Legend.Items.Clear(); foreach (UserLessonProgress ulp in progress) { failedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.Failed))); completedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.Completed))); startedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.Started))); notstartedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.NotStarted))); Chart_Code.PlotArea.XAxis.AddItem(new ChartAxisItem(ulp.Title, Color.Violet)); } Chart_Code.AddChartSeries(failedSeries); Chart_Code.AddChartSeries(completedSeries); Chart_Code.AddChartSeries(startedSeries); Chart_Code.AddChartSeries(notstartedSeries); //SPECIFY THE CHART Chart_Code.DefaultType = ChartSeriesType.StackedBar100; Chart_Code.Visible = true; Chart_Code.PlotArea.Appearance.FillStyle.MainColor = Color.FromArgb(255, 255, 255); Chart_Code.PlotArea.Appearance.FillStyle.SecondColor = Color.FromArgb(255, 255, 255); Chart_Code.PlotArea.EmptySeriesMessage.TextBlock.Text = "No data available"; Chart_Code.PlotArea.EmptySeriesMessage.Appearance.FillStyle.MainColor = Color.FromArgb(255, 255, 255); Chart_Code.PlotArea.EmptySeriesMessage.Appearance.FillStyle.SecondColor = Color.FromArgb(255, 255, 255); //** CHART TITLE ** Chart_Code.ChartTitle.TextBlock.Appearance.Dimensions.Height = 0; Chart_Code.ChartTitle.TextBlock.Visible = false; Chart_Code.Chart.Appearance.Corners.SetCornersType(Telerik.Charting.Styles.CornerType.Round); Chart_Code.Appearance.Border.Color = Color.LightGray; Chart_Code.Skin = "Outlook"; //** YAXIS ** Chart_Code.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font = new Font("Arial", 8, FontStyle.Bold); Chart_Code.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = Color.FromArgb(50, 50, 50); Chart_Code.PlotArea.YAxis.MaxValue = 110; Chart_Code.PlotArea.YAxis.MaxValue = 0; Chart_Code.PlotArea.YAxis.AutoScale = false; Chart_Code.PlotArea.YAxis.AddRange(0, 100, 20); Chart_Code.PlotArea.YAxis.AxisLabel.TextBlock.Text = "%"; Chart_Code.PlotArea.YAxis.AxisLabel.Visible = true; Chart_Code.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false; //** XAXIS ** Chart_Code.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new Font("Arial", 8, FontStyle.Bold); Chart_Code.PlotArea.XAxis.AutoScale = true; //Chart_Code.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 320; Chart_Code.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Top; Chart_Code.PlotArea.XAxis.Appearance.TextAppearance.AutoTextWrap = Telerik.Charting.Styles.AutoTextWrap.True; Chart_Code.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Between; Chart_Code.PlotArea.Appearance.Dimensions.Margins.Bottom.Value = 30; Chart_Code.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 90; //** CHART HEIGHT/WIDTH/PADDING/MARGINS Chart_Code.PlotArea.Appearance.Dimensions.Margins.Bottom = Telerik.Charting.Styles.Unit.Percentage(40); Chart_Code.PlotArea.Appearance.Dimensions.Margins.Top = Telerik.Charting.Styles.Unit.Percentage(10); Chart_Code.PlotArea.Appearance.Dimensions.Margins.Left = Telerik.Charting.Styles.Unit.Percentage(8); Chart_Code.PlotArea.Appearance.Dimensions.Margins.Right = Telerik.Charting.Styles.Unit.Percentage(5); Chart_Code.PlotArea.Appearance.Dimensions.Width = Telerik.Charting.Styles.Unit.Pixel(400); //// ** LEGEND STYLE ** Chart_Code.Legend.TextBlock.Appearance.FillStyle.SecondColor = Color.White; Chart_Code.Legend.Appearance.FillStyle.SecondColor = Color.White; Chart_Code.Legend.Appearance.ItemMarkerAppearance.Visible = false; Chart_Code.Legend.Appearance.Corners.SetCornersType(Telerik.Charting.Styles.CornerType.Round); Chart_Code.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.BottomLeft; Chart_Code.Legend.Appearance.Dimensions.Margins.Left = 70; Chart_Code.Legend.Appearance.Dimensions.Margins.Bottom = 20; Chart_Code.Legend.Appearance.Dimensions.AutoSize = false; Chart_Code.Legend.Appearance.Dimensions.Width = Telerik.Charting.Styles.Unit.Pixel(830); Chart_Code.Legend.Appearance.Dimensions.Height = Telerik.Charting.Styles.Unit.Pixel(30); //// ** PLOTAREA STYLE ** Chart_Code.PlotArea.Appearance.Border.Visible = false; Chart_Code.PlotArea.Appearance.FillStyle.MainColor = Color.White; Chart_Code.PlotArea.Appearance.FillStyle.SecondColor = Color.White; } Chart_Code.PlotArea.XAxis.AddItem(new ChartAxisItem(ulp.Title, Color.Violet)); " but the numbers still show up (and aren't violet).//CLEAR INFO Chart_Code.PlotArea.Chart.Series.Clear(); Chart_Code.PlotArea.XAxis.Clear(); //GET THE INFO i2d2LMSProgress i2d2progress = new i2d2LMSProgress(); UserLessonProgressCollection progress = i2d2progress.GetUserProgress(UserID, CourseID); ChartSeries failedSeries = new ChartSeries("FTW"); failedSeries.Clear(); failedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; failedSeries.Appearance.LabelAppearance.Visible = false; failedSeries.Appearance.FillStyle.MainColor = Color.Red; failedSeries.Type = ChartSeriesType.StackedBar100; ChartSeries completedSeries = new ChartSeries("Completed"); completedSeries.Clear(); completedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; completedSeries.Appearance.LabelAppearance.Visible = false; completedSeries.Appearance.FillStyle.MainColor = Color.Green; completedSeries.Type = ChartSeriesType.StackedBar100; ChartSeries startedSeries = new ChartSeries("Started"); startedSeries.Clear(); startedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; startedSeries.Appearance.LabelAppearance.Visible = false; startedSeries.Appearance.FillStyle.MainColor = Color.Yellow; startedSeries.Type = ChartSeriesType.StackedBar100; ChartSeries notstartedSeries = new ChartSeries("Not Started"); notstartedSeries.Clear(); notstartedSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName; notstartedSeries.Appearance.LabelAppearance.Visible = false; notstartedSeries.Appearance.FillStyle.MainColor = Color.PowderBlue; notstartedSeries.Type = ChartSeriesType.StackedBar100; Chart_Code.Legend.Items.Clear(); foreach (UserLessonProgress ulp in progress) { failedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.Failed))); completedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.Completed))); startedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.Started))); notstartedSeries.AddItem(new ChartSeriesItem(Convert.ToDouble(ulp.NotStarted))); Chart_Code.PlotArea.XAxis.AddItem(new ChartAxisItem(ulp.Title, Color.Violet)); } Chart_Code.AddChartSeries(failedSeries); Chart_Code.AddChartSeries(completedSeries); Chart_Code.AddChartSeries(startedSeries); Chart_Code.AddChartSeries(notstartedSeries); //SPECIFY THE CHART Chart_Code.DefaultType = ChartSeriesType.StackedBar100; Chart_Code.Visible = true;<telerik:RadAjaxManagerProxy runat="server" ID="Proxy1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="ddlCategories"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ddlCategories" UpdatePanelRenderMode="Inline" LoadingPanelID="AjaxPanel1" /> <telerik:AjaxUpdatedControl ControlID="pnlLittleVideos" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="pnlLittleVideos"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlLittleVideos" LoadingPanelID="AjaxPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadAjaxLoadingPanel runat="server" ID="AjaxPanel1"> <img src="/bh/corporate/includes/img/loaders/style2_white.gif" /> </telerik:RadAjaxLoadingPanel><asp:Panel runat="server" ID="pnlLittleVideos"> <telerik:RadListView ID="rptLittleVideos" runat="server" AllowPaging="true" PageSize="2" ItemPlaceholderID="plcVideoContainer"> <LayoutTemplate> <asp:PlaceHolder runat="server" ID="plcVideoContainer"></asp:PlaceHolder> <asp:Button runat="server" ID="btnNext" Text="More" OnClick="btnMore_Click" ></asp:Button> </LayoutTemplate> <ItemTemplate> <section class="box li-video"> <!-- CONTENT HERE --> </section> </ItemTemplate> </telerik:RadListView></asp:Panel>public void btnMore_Click(object sender, EventArgs e){ rptLittleVideos.PageSize = 5; rptLittleVideos.CurrentPageIndex = 0; rptLittleVideos.Rebind();}private void rptLittleVideos_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e) { if (!IsPostBack) PopulateTags(); var featurettes = CurrentItem .ChildrenByTemplate("Little Inspiration Featurette") .As(i => new LittleVideo(i)) .Where(i => i.IsSet) // && i.Tags.Contains(tag) .ToList(); // Check to see if we need to filter by category if (ddlCategories.SelectedIndex > 0) { var tagFiltered = new List<LittleVideo>(); tagFiltered = featurettes.Where(i => i.Tags.Contains(ddlCategories.SelectedValue)).ToList(); featurettes.Clear(); featurettes.AddRange(tagFiltered); } rptLittleVideos.ItemDataBound += rptLittleVideos_ItemDataBound; rptLittleVideos.DataSource = featurettes; RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("jQuery.app.pages.global.reloadJS()"); }foreach (ProductsAndPrices yl in YearlyAverage){ string name = yl.Product + " " + yl.ProductStrength + " " + yl.Pack_Size; chart.Name = name; int av = int.Parse(yl.Average.ToString()); chart.AddItem(int.Parse(yl.Average.ToString()), name);}testing.Series.Add(chart);