or
| public DataView Fill() |
| { |
| //DataView dv = new DataView(); |
| //dv.Table.DataSet.Tables.Add("tbl999"); |
| DataTable dt = new DataTable("tbl999"); |
| dt.Columns.Add(new DataColumn("Title")); |
| dt.Columns.Add(new DataColumn("isCombo")); |
| dt.Columns.Add(new DataColumn("options")); |
| for (int i = 0; i < 10; i++) |
| { |
| DataTable dtInner = new DataTable("dtInner "+i); |
| dtInner.Columns.Add(new DataColumn("optionValue")); |
| dtInner.Columns.Add(new DataColumn("optionTitle")); |
| for(int j=0;j<i;j++){ |
| dtInner.Rows.Add(j,"option " + j); |
| } |
| DataView dvInner = dtInner.DefaultView; |
| dt.Rows.Add("Question number " + i, Convert.ToBoolean(i % 2), dvInner); |
| } |
| DataView dv = dt.DefaultView; |
| return dv; |
| } |
| <td style="width: 50%"> |
| <asp:Label ID="lblOptionTitle" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Title") %>'></asp:Label> |
| </td> |
| <asp:DropDownList runat="server" DataSource='<%# DataBinder.Eval(Container, "DataItem.options") %>' OnDataBinding="dropdownlist2_DataBound" |
| ID="dropdownlist2" AppendDataBoundItems="true" DataTextField="optionTitle" DataValueField="optionValue" DataMember="options"> |
| </asp:DropDownList> <td style="width: 50%"> |
| </td> |
| <script type="text/javascript"> |
| function OnClientButtonClicking(sender, args) |
| { |
| if (args.get_item().get_value() == "save") { |
| var editor = $find("<%=reComments.ClientID%>"); |
| if (editor.get_text() == "") { |
| window.alert("You must enter Comments in order to have your request reviewed!"); |
| args.set_cancel(true); |
| } |
| } |
| } |
| </script> |
| <telerik:radeditor |
| Skin="WebBlue" |
| EditModes="Design" |
| Width="80%" |
| Height="250px" |
| StripFormattingOnPaste="All" |
| ID="reComments" |
| runat="server" |
| toolsfile="~/ToolsFile.xml" |
| StripFormattingOptions="All"> |
| <CssFiles><telerik:EditorCssFile Value="~/css/EditorContentArea.css" /></CssFiles> |
| <Content> |
| </Content> |
| </telerik:radeditor> |
| <telerik:radtoolbar OnClientButtonClicking="OnClientButtonClicking" Skin="Vista" Font-Names="Verdana" AutoPostBack="true" runat="server" id="Radtoolbar2"> |
| <items> |
| <telerik:RadToolBarButton CommandArgument="save" CommandName="save" Enabled="false" ForeColor="White" Text="Submit Request" ImageUrl="../../images/save.gif" runat="server" ToolTip="Click here to submit your request to your supervisor." /> |
| <telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton> |
| <telerik:RadToolBarButton CommandArgument="cancel" ForeColor="White" Text="Cancel & Return to Competency List" ImageUrl="../../images/back.gif" runat="server" ToolTip="Click here to cancel any changes made and return to the list of competencies." CommandName="Cancel" /> |
| </items> |
| </telerik:radtoolbar> |


After trying it for awhile...and i can't seem to figure out 2 things:
(programaticly in vb.net)
1) How do you manipulate the style (font, color,etc.) of Series Item Labels?
2) In an Area-type chart, how do you alter the color gradient of a given series? Like how would you make it a solid color or keep the gradient but make it les severe?
Thanks.
Below is the code I'm using to generate the chart:
| Dim sqlDataSource As New SqlDataSource() |
| sqlDataSource.ID = "myDataSource" |
| sqlDataSource.ConnectionString = "Data Source=xxxxxxxxxxxxx" |
| sqlDataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure |
| sqlDataSource.SelectCommand = "sla_iap" |
| sqlDataSource.SelectParameters.Add("Param1", p1) |
| sqlDataSource.SelectParameters.Add("Param2", p2) |
| sqlDataSource.SelectParameters.Add("Param3", p3) |
| Me.Page.Controls.Add(sqlDataSource) |
| RadChart1.Skin = "Colorful" |
| RadChart1.Appearance.FillStyle.MainColor() = Drawing.Color.Cornsilk |
| RadChart1.Appearance.FillStyle.SecondColor() = Drawing.Color.Brown |
| RadChart1.PlotArea.Appearance.Border.Width = "1" |
| RadChart1.ChartTitle.Appearance.Border.Visible = False |
| RadChart1.ChartTitle.Appearance.FillStyle.MainColor = Drawing.Color.Cornsilk |
| RadChart1.ChartTitle.TextBlock.Text = "Maintenance Met / Missed Trending Report For All Incidents" |
| RadChart1.DefaultType = Telerik.Charting.ChartSeriesType.StackedSplineArea100 |
| RadChart1.AutoLayout = True |
| RadChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = Drawing.Color.Black |
| RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Drawing.Color.Black |
| RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = "90" |
| RadChart1.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.ShortDate |
| RadChart1.PlotArea.XAxis.DataLabelsColumn = "WeekRestored" |
| RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font = New System.Drawing.Font("Arial", 14, Drawing.FontStyle.Regular) |
| RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = Drawing.Color.CadetBlue |
| RadChart1.DataSourceID = "myDataSource" |
| RadChart1.DataBind() |
