or

| protected override void CreateChildControls() |
| { |
| base.CreateChildControls(); |
| var rttMyAlerts = new RadToolTip |
| { |
| ID = "rttMyAlerts", |
| TargetControlID = rtsHeader.Tabs[0].ClientID, |
| IsClientID = true, |
| Title = "Tool Tip Test", |
| Text = "Hi !", |
| ShowDelay = 0, |
| }; |
| Controls.Add(rttMyAlerts); |
| } |
| <telerik:RadToolTipManager AutoTooltipify="true" Title="Tip" |
| ID="radToolTipManager1" runat="server" /> |
| <telerik:RadTabStrip Visible="false" ID="rtsHeader" runat="server" > |
| <Tabs> |
| <telerik:RadTab ToolTip="Text to show for My Messages Tab 1" Text="Tab1" /> |
| <telerik:RadTab ToolTip="Text to show for My Messages Tab 2" Text="Tab2" /> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadScriptManager ID="ScriptManager" runat="server" /> |
| <telerik:RadAjaxManager ID="AjaxManager" runat="server" /> |
| <asp:FormView ID="Inspection" runat="server" DataSourceID="InspectionDataSource" |
| DefaultMode="Edit"> |
| <EditItemTemplate> |
| <%# Eval("Name") %> |
| <telerik:RadListView ID="Items" runat="server" DataSource='<%# Bind("Items") %>'> |
| <LayoutTemplate> |
| <asp:PlaceHolder ID="itemPlaceholder" runat="server" /> |
| </LayoutTemplate> |
| <EditItemTemplate> |
| Edit mode |
| <asp:LinkButton ID="Update" runat="server" CommandName="Update" Text="Update" ValidationGroup="Item" /> |
| <asp:LinkButton ID="Cancel" runat="server" CausesValidation="false" CommandName="Cancel" |
| Text="Cancel" /> |
| </EditItemTemplate> |
| <ItemTemplate> |
| Read mode |
| <asp:LinkButton ID="Edit" runat="server" CausesValidation="false" CommandName="Edit" |
| Text="Edit" /> |
| </ItemTemplate> |
| </telerik:RadListView> |
| </EditItemTemplate> |
| </asp:FormView> |
| <asp:ObjectDataSource ID="InspectionDataSource" runat="server" DataObjectTypeName="Foo.Inspection" |
| TypeName="Foo.DataSource" SelectMethod="RetrieveInspection" /> |
| RadChart RadChart1 = new RadChart(); |
| RadChart1.AutoLayout = true; |
| RadChart1.Skin = "Vista"; |
| RadChart1.Width = Unit.Pixel(720); |
| RadChart1.Height = Unit.Pixel(450); |
| RadChart1.ChartTitle.TextBlock.Text = "Details of date '" + Convert.ToDateTime(ds1.Tables[0].Rows[0]["TestDate"]).ToShortDateString() + "'"; |
| ChartSeries chartSeries = new ChartSeries(); |
| chartSeries.Appearance.LabelAppearance.Visible = false; |
| chartSeries.Name = "CPM"; |
| chartSeries.Type = ChartSeriesType.Line; |
| chartSeries.Appearance.LineSeriesAppearance.Color = System.Drawing.Color.BlueViolet; |
| // visually enhance the data points |
| chartSeries.Appearance.PointMark.Dimensions.Width = 5; |
| chartSeries.Appearance.PointMark.Dimensions.Height = 5; |
| chartSeries.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.Black; |
| chartSeries.Appearance.PointMark.Visible = true; |
| chartSeries.DataYColumn = "CPM"; |
| RadChart1.Series.Add(chartSeries); |
| RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 30; |
| RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Right; |
| RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black; |
| RadChart1.PlotArea.XAxis.AxisLabel.Visible = true; |
| RadChart1.PlotArea.XAxis.AutoScale =false; |
| RadChart1.PlotArea.XAxis.AddRange(1, 7, 1); |
| RadChart1.PlotArea.XAxis[0].TextBlock.Text = "39"; |
| RadChart1.PlotArea.XAxis[1].TextBlock.Text = "40"; |
| RadChart1.PlotArea.XAxis[2].TextBlock.Text = "41"; |
| RadChart1.PlotArea.XAxis[3].TextBlock.Text = "42"; |
| RadChart1.PlotArea.XAxis[4].TextBlock.Text = "43"; |
| RadChart1.PlotArea.XAxis[5].TextBlock.Text = "44"; |
| RadChart1.PlotArea.XAxis[6].TextBlock.Text = "45"; |
| RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Length"; |
| RadChart1.PlotArea.XAxis.AxisLabel.Visible = true; |
| RadChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black; |
| RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "CPM"; |
| RadChart1.PlotArea.YAxis.AxisLabel.Visible = true; |
| RadChart1.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended; |
| RadChart1.DataSource = ds1; |
| RadChart1.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(RadChart1_ItemDataBound); |
| RadChart1.DataBind(); |
| pnlGraph.Controls.Add(RadChart1); |
| RadToolTipManager1.ToolTipZoneID = "RadChart1"; |
| protected void RadChart1_ItemDataBound(object sender, Telerik.Charting.ChartItemDataBoundEventArgs e) |
| { |
| e.SeriesItem.ActiveRegion.Tooltip += "Length:" + ((DataRowView)e.DataItem)["Length"].ToString() + " and CPM: " + e.SeriesItem.YValue + " for Club: " + ((DataRowView)e.DataItem)["Club"].ToString(); |
| } |