or
<div class="bitInput"> <div class="btn btn-success btnAdd" Style="width: 192px ! important;margin-top:10px;" onclick="OpenActionGrid();">Add a Proposed Action</div></div><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server"></telerik:RadAjaxLoadingPanel><telerik:RadWindow ID="RWAction" OnClientClose="OnClientCloseProposedActionGrid" Width="350" Height="400" runat="server" Modal="true" Title="Proposed Actions" VisibleOnPageLoad="false" Behaviors="Move,Close, Reload" EnableShadow="true"> <ContentTemplate><div style="font-weight: bold; font-size: 14px;padding-left:0px !important;"> <div> <div> <div> <asp:Label ID="lblActionType" CssClass="bitInputLabel" AssociatedControlID="cmbActionTypeInvPA" runat="server">Action Type:</asp:Label> </div> <div class="flt"> <telerik:RadComboBox ID="cmbActionTypeInvPA" runat="server" Width="215px" Skin="Default" EmptyMessage="Select Action Type" OnClientSelectedIndexChanged="onSelectedIndexChanged"> </telerik:RadComboBox> </div> <div class="flt"> <asp:RequiredFieldValidator runat="server" ID="reqActionTypePA" ValidationGroup="invActionValidation" SetFocusOnError="true" ControlToValidate="cmbActionTypeInvPA" ErrorMessage="Current Control is required" Text="*"></asp:RequiredFieldValidator> </div> <div class="clr"></div> <div id="divActionTypeOtherPA" class="divActionTypeOtherPA" style="display: none; margin-top: 2px;" runat="server"> <div class="flt"> <telerik:RadTextBox ID="txtActionTypeOthersInvPA" runat="server" Width="217px" Skin="Default"> </telerik:RadTextBox> </div> <div class="flt"> <asp:RequiredFieldValidator runat="server" ID="rfvtxtActionTypeOthersPA" ValidationGroup="invActionValidation" ClientIDMode="Static" Enabled="false" SetFocusOnError="true" ControlToValidate="txtActionTypeOthersInvPA" ErrorMessage="Responsibility is required" Text="*"></asp:RequiredFieldValidator> </div> <div class="clr"></div> </div> </div> <div> <div> <asp:Label CssClass="bitInputLabel" runat="server" ID="lblActions" AssociatedControlID="txtActionsPA">Proposed Actions</asp:Label> </div> <div class="flt"> <telerik:RadTextBox ID="txtActionsPA" CssClass="textInput" runat="server" Width="217px" ValidationGroup="invActionValidation"></telerik:RadTextBox> </div> <div class="flt"> <asp:RequiredFieldValidator runat="server" ID="reqActionsPA" ValidationGroup="invActionValidation" SetFocusOnError="true" ControlToValidate="txtActionsPA" ErrorMessage="Action is required" Text="*"></asp:RequiredFieldValidator> </div> <div class="clr"></div> </div> <div> <div> <asp:Label ID="lblResponsibilityInv" runat="server" CssClass="bitInputLabel" AssociatedControlID="txtResponsibilityPA">Responsibility:</asp:Label> </div> <div class="flt"> <telerik:RadTextBox ID="txtResponsibilityPA" EnableSingleInputRendering="true" ShowButton="true" AutoPostBack="true" OnTextChanged="txtResponsibilityPA_TextChanged" CssClass="textInput" runat="server" Width="245px"></telerik:RadTextBox> <%--<telerik:RadTextBox ID="" CssClass="textInput" runat="server" Width="217px" ValidationGroup="invActionValidation"></telerik:RadTextBox>--%> </div> <div class="flt"> <asp:RequiredFieldValidator runat="server" ID="reqResponsibilityPA" ValidationGroup="invActionValidation" SetFocusOnError="true" ControlToValidate="txtResponsibilityPA" ErrorMessage="Responsibility is required" Text="*"></asp:RequiredFieldValidator> </div> <div class="clr"></div> </div> <div style="margin-top:5px;" > <telerik:RadTextBox ID="txtResponsibilityNamePA" CssClass="textInput" ReadOnly="true" runat="server" Width="224px"></telerik:RadTextBox> </div> <div> <div> <asp:Label ID="lblDueDateInv" CssClass="bitInputLabel" runat="server" AssociatedControlID="rdpDueDateInvPA">Due Date:</asp:Label> </div> <div class="flt"> <telerik:RadDatePicker ID="rdpDueDateInvPA" runat="server" Width="217px" ValidationGroup="invActionValidation"></telerik:RadDatePicker> </div> <div class="flt"> <asp:RequiredFieldValidator runat="server" ID="reqDueDateInvPA" ValidationGroup="invActionValidation" SetFocusOnError="true" ControlToValidate="rdpDueDateInvPA" ErrorMessage="Due Date is required" Text="*"></asp:RequiredFieldValidator> </div> <div class="clr"></div> </div> <div class="clr"></div> </div><div style="margin-top: 5px;"> <asp:Button ID="btnAddInvAction" runat="server" Text="Save" OnClick="btnInvAction_Click" CssClass="btn btn-primary btnAdd" ValidationGroup="invActionValidation" /> <asp:Button ID="btnActionClose" runat="server" Text="Close" CssClass="btn btn-danger btnAdd" OnClientClick="CloseProposedAction();" OnClick="btnActionClose_Click" /> <asp:HiddenField ID="hdnProposedAction" runat="server" /> </div></div> </ContentTemplate> </telerik:RadWindow>function OpenActionGrid() { $find("<%=RWAction.ClientID%>").show(); }RadHtmlChart1.PlotArea.XAxis.LabelsAppearance.TextStyle.Bold = true;
but i am getting error line "TextStyle" is not supported under XAxis.LabelsAppearance
I have refered below link example
http://www.telerik.com/help/aspnet-ajax/htmlchart-appearance-labels-titles-font-settings.html,
it says it is supported.
Am i missing something?
Thanks,
Dhachina
.RadComboBoxDropDown .rcbItem em{ color: #000000 !important; /* App.Colors.FocusForeColor */ }protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { HolidayTrackerEntities ctx = HtEntityFactory.Context; IEnumerable<HtUser> users = ctx.HtUsers; int year = 2013; double usedVacation = 0; double bookedVacation = 0; foreach (HtUser user in users) { usedVacation += user.GetUsedVacation(year); bookedVacation += user.GetBookedVacation(year); } double forcastVacation = usedVacation + bookedVacation; List<double> src = new List<double>(); src.Add(usedVacation); src.Add(bookedVacation); src.Add(forcastVacation); VacationPieChart.DataSource = src; VacationPieChart.DataBind(); } }<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="190px" Width="420px" MarkFirstMatch="true" EnableLoadOnDemand="true" HighlightTemplatedItems="true" OnItemsRequested="RadComboBox1_ItemsRequested" AutoPostBack ="False" > <HeaderTemplate> <ul> <li class="col1">Model Name</li> <li class="col2">Brand</li> <li class="col3">Product ID</li> </ul> </HeaderTemplate> <ItemTemplate> <ul> <li class="col1"> <%# DataBinder.Eval(Container.DataItem, "ModelName")%></li> <li class="col2"> <%# DataBinder.Eval(Container.DataItem, "Brand")%></li> <li class="col3"> <%# DataBinder.Eval(Container.DataItem, "ProductID")%></li> </ul> </ItemTemplate> </telerik:RadComboBox>Protected Sub RadComboBox1_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs) Dim y = (From x In db.table_ Where x.Manufacturer.Contains(RadComboBox1.Text) Select New With {.Products = x.ModelName + " - " + x.Brand, _ .ProductID = x.ProductID, .ModelName = x.ModelName, _ .Manufacturer = x.Brand}).ToList RadComboBox1.DataSource = y RadComboBox1.DataTextField = "Products" RadComboBox1.DataValueField = "ProductID" RadComboBox1.DataBind() End Sub Protected Sub RadComboBox1_ItemDataBound(ByVal sender As Object, ByVal e As RadComboBoxItemEventArgs) 'set the Text and Value property of every item 'here you can set any other properties like Enabled, ToolTip, Visible, etc. e.Item.Text = (DirectCast(e.Item.DataItem, DataRowView))("ModelName").ToString() e.Item.Value = (DirectCast(e.Item.DataItem, DataRowView))("Brand").ToString() End Sub End Class
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreeView.aspx.cs" Inherits="DXiCustomerData.TreeView" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <div> <telerik:RadButton ID="btnExportTree" runat="server" Text="Export Tree" OnClick="btnExportTree_Click" Visible="true"> </telerik:RadButton> <telerik:RadTreeView ID="rtvResults" runat="server" Visible="true"> </telerik:RadTreeView> </div> </form></body></html>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.SqlClient;using System.Data.SqlTypes;using System.IO;using System.Collections;using Telerik.Web;using Telerik.Web.UI;namespace DXiCustomerData{ public partial class TreeView : System.Web.UI.Page { private String glogDate; protected void Page_Load(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(Properties.Settings.Default.ConnectionString); rtvResults.Nodes.Clear(); conn.Open(); PopulateTree pt = new PopulateTree(); pt.AddNodes(conn, rtvResults, Request.QueryString.Get("SN")); glogDate = pt.glogDate; conn.Close(); } protected void btnExportTree_Click(object sender, EventArgs e) { string sFileName = System.IO.Path.GetRandomFileName(); string sGenName = "DXiConfigInfo.csv"; if (Request.QueryString.Get("SN") != null) { DateTime dt; DateTime.TryParse(glogDate, out dt); sGenName = "DXiConfigInfo_" + Request.QueryString.Get("SN") + "_LogDate_" + dt.ToString("yyyyMMddHHmm") + ".csv"; } StreamWriter sw = new StreamWriter(Server.MapPath("TextFiles/" + sFileName + ".csv"), false, System.Text.Encoding.UTF8); exportToXml(sw, rtvResults); sw.Close(); System.IO.FileStream fs = null; fs = System.IO.File.Open(Server.MapPath("TextFiles/" + sFileName + ".csv"), System.IO.FileMode.Open); byte[] btFile = new byte[fs.Length]; fs.Read(btFile, 0, Convert.ToInt32(fs.Length)); fs.Close(); Response.AddHeader("Content-disposition", "attachment; filename=" + sGenName); Response.ContentType = "application/octet-stream"; Response.BinaryWrite(btFile); Response.End(); } public static void exportToXml(StreamWriter sr, RadTreeView parent) { foreach (RadTreeNode node in parent.Nodes) { sr.WriteLine(node.Text); if (node.Nodes.Count > 0 && node.Expanded) parseNode(sr, node); } } private static void parseNode(StreamWriter sr, RadTreeNode parent) { foreach (RadTreeNode child in parent.Nodes) { for (int i = 0; i < child.Level; i++) sr.Write(","); sr.WriteLine(child.Text); if (child.Nodes.Count > 0 && child.Expanded) parseNode(sr, child); } } }}<telerik:RadGrid ID="learnerGrid" runat="server" OnNeedDataSource="learnerGrid_NeedDataSource" AutoGenerateColumns="false" ShowHeader="true" Height="500px" ItemType="AuthDB.Model.MppProfile"> <MasterTableView> <Columns> <telerik:GridTemplateColumn DataField="UserName" HeaderText="Name"> <ItemTemplate> <span><%# Item.UserName %></span> <span></span> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="FullNameReverse" HeaderText="Name" /> </Columns> <NoRecordsTemplate> No learners </NoRecordsTemplate> </MasterTableView> <ClientSettings> <Scrolling AllowScroll="true" ScrollHeight="500px" /> </ClientSettings> </telerik:RadGrid>