<telerik:RadDatePicker ID="calDOB" runat="server" Culture="en" MinDate="1900-01-01" Width="100%" TabIndex="5"> <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DateInput runat="server" DisplayDateFormat="d/M/yyyy" DateFormat="d/M/yyyy" TabIndex="5"> </DateInput> <DatePopupButton ImageUrl="" HoverImageUrl="" TabIndex="5"></DatePopupButton> <ClientEvents OnDateSelected="SelectedDateChanged" /> </telerik:RadDatePicker>
function SelectedDateChanged(sender,args) { var PckrBirthDate = $find('<%=calDOB.ClientID %>'); var LblYears = $find('<%= TxtYears.ClientID %>'); var LblMonths = $find('<%= TxtMonths.ClientID %>'); var LblDays = $find('<%= TxtDays.ClientID %>'); var birthDate = PckrBirthDate.get_selectedDate(); if (birthDate != null) { var calday = birthDate.getDate(); var calmon = birthDate.getMonth(); var calyear = birthDate.getFullYear(); getAge(calday, calmon, calyear, LblYears, LblMonths, LblDays); } else { LblYears.set_value(""); LblMonths.set_value(""); LblDays.set_value(""); } }function getAge(date, month, year, yearControl, monthControl, dayControl) { today = new Date(); dateStr = today.getDate(); monthStr = today.getMonth(); yearStr = today.getFullYear(); theYear = yearStr - year; theMonth = monthStr - month; theDate = dateStr - date; var days = ""; if (monthStr == 0 || monthStr == 2 || monthStr == 4 || monthStr == 6 || monthStr == 7 || monthStr == 9 || monthStr == 11) days = 31; if (monthStr == 3 || monthStr == 5 || monthStr == 8 || monthStr == 10) days = 30; if (monthStr == 1) days = 28; yearControl.set_value(theYear); if (month < monthStr && date > dateStr) { yearControl.set_value(parseInt(yearControl.get_value()) + 1); monthControl.set_value(theMonth - 1); } if (month < monthStr && date <= dateStr) { monthControl.set_value(theMonth); } else if (month == monthStr && (date < dateStr || date == dateStr)) { monthControl.set_value(0); } else if (month == monthStr && date > dateStr) { monthControl.set_value(11); } else if (month > monthStr && date <= dateStr) { yearControl.set_value(yearControl.get_value()- 1); monthControl.set_value(((12 - -(theMonth)))); } else if (month > monthStr && date > dateStr) { monthControl.set_value(((12 - -(theMonth)))); } if (date < dateStr) { dayControl.set_value(theDate); } else if (date == dateStr) { dayControl.set_value(0); } else { yearControl.set_value(yearControl.get_value() - 1); dayControl.set_value(days - (-(theDate))); }}<telerik:RadGrid ID="G_Permessi" runat="server" AllowPaging="true" Width="100%" Height="100%" AutoGenerateColumns="false" GridLines="Both" PageSize="13" AllowSorting="true" AllowMultiRowSelection="true"> <ClientSettings AllowKeyboardNavigation="true" ActiveRowIndex="0"> <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="True" /> <Selecting AllowRowSelect="true" /> <ClientEvents OnRowSelected="G_Permessi_OnRowSelected" /> </ClientSettings> <AlternatingItemStyle BackColor="#C7E3E3" /> <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" PagerTextFormat="{4} Numero record filtrati: {5}" /> <MasterTableView runat="server" TableLayout="Fixed" DataKeyNames="IdPermesso" EditMode="InPlace"> <Columns> <telerik:GridBoundColumn UniqueName="AttivoDB" DataField="Attivo" Display="false" /> <telerik:GridBoundColumn UniqueName="IdPermesso" DataField="IdPermesso" Display="false" /> <telerik:GridBoundColumn UniqueName="Modulo" DataField="Modulo" HeaderText="Modulo" meta:resourcekey="G_Permessi_Modulo"> <HeaderStyle Width="100px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Permesso" DataField="Permesso" HeaderText="Permesso" meta:resourcekey="G_Permessi_Permesso"> <HeaderStyle Width="100px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Descrizione" DataField="Descrizione" HeaderText="Descrizione" meta:resourcekey="G_Permessi_Descrizione"> <HeaderStyle Width="100px" /> </telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="Attivo" DataField="Attivo" HeaderText="Attivo" meta:resourcekey="Grid_Attivo"> <ItemTemplate> <asp:CheckBox ID="Chk_Attivo" OnCheckedChanged="AssegnaPermesso" AutoPostBack="true" runat="server" /> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> <HeaderStyle HorizontalAlign="Center" Width="50px" /> </telerik:GridTemplateColumn> </Columns> </MasterTableView></telerik:RadGrid><%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" EnableTheming="true" Theme="theme" CodeBehind="TimeSheet.aspx.cs" Inherits="TimeSheet.Account.TimeSheet" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <style> .NumericTextStyle { text-align:right !important; } </style> <div> <h1>Employees Time Sheet</h1> <table style="width: 454px"> <tr> <td style="width: 84px"> <asp:Label ID="Label1" runat="server" Text="Employee:"></asp:Label> </td> <td> <asp:Label ID="lblEmployeeName" runat="server" Width="350px" BorderWidth="1px" Font-Bold="False" BorderColor="Black" BorderStyle="Groove"></asp:Label> </td> </tr> <tr> <td style="width: 84px"> <asp:Label ID="Label2" runat="server" Text="Week Of:"></asp:Label></td> <td> <asp:DropDownList ID="ddTimePeriod" Width="350px" BackColor="#FEFFE8" AutoPostBack="true" runat="server" onselectedindexchanged="ddTimePeriod_SelectedIndexChanged"> </asp:DropDownList> </td> </tr> </table> <br /> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Button1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Panel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="Button2"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Panel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div id="TimeEntry" style="background-color:#FEFFE8; border:thin solid #008080; padding:5px; width:1005px "> <asp:DataList ID="dlTimeSheet" runat="server" RepeatColumns="9" RepeatDirection="Horizontal" CellPadding="1" UseAccessibleHeader="True" onitemdatabound="dlTimeSheet_ItemDataBound" DataKeyField="Id" ShowFooter="False" ShowHeader="False" > <ItemTemplate> <div style="text-align:center; width:100px"> <asp:Label ID="lblRowTitle1" runat="server" Height="84px" Width="100px" Text="" /><br /> <asp:Label ID="lblRowTitle2" runat="server" Height="38px" Font-Bold="true" Width="100px" Text="Start Time:" /> <asp:Label ID="lblRowTitle3" runat="server" Height="38px" Font-Bold="true" Width="100px" Text="End Time:" /> <asp:Label ID="lblRowTitle4" runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" Text="On-Site Hours:" /> <asp:Label ID="lblRowTitle5" runat="server" Height="30px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" Text="Off-Site Hours:" /> <asp:Label ID="lblRowTitle6" runat="server" Height="30px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" Text="Lunch:" /> <asp:Label ID="lblRowTitle7" runat="server" Height="20px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" Text="Category:" /> <asp:Label ID="lblRowTitle8" runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" Text="Weekly Totals:" /> <div style="text-align:left; width:100px"> <asp:Label ID="DayofWeekLabel" runat="server" Width="100px" Text='<%# Eval("TimeRange") %>' /> </div> <asp:Label ID="lblId" runat="server" Width="100px" Visible="false" Text='<%# Eval("Id") %>' /> <asp:Label ID="lblDayofWeek" runat="server" Width="100px" Visible="false" Text='<%# Eval("DayofWeek") %>' /> </div> <div style="text-align:center; width:100px"> <div style="float:left; text-align:left"> <telerik:RadTimePicker ID="RaddtpStart" runat="server" Width="100px" SharedTimeViewID="sharedTimeView" SelectedDate='<%# Eval("StartTime") %>' ShowPopupOnFocus="True"> </telerik:RadTimePicker> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="RaddtpStart" ValidationGroup="group1"></asp:RequiredFieldValidator> </div> <div style="float:left; text-align:left"> <telerik:RadTimePicker ID="RaddtpEnd" Width="100px" SharedTimeViewID="sharedTimeView" runat="server" SelectedDate='<%# Eval("EndTime") %>'> </telerik:RadTimePicker> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="RaddtpEnd" ValidationGroup="group1"></asp:RequiredFieldValidator> </div> <telerik:RadTimeView ID="sharedTimeView" runat="server" StartTime="07:00:00" EndTime="19:00:00" Interval="00:15:00" > </telerik:RadTimeView> <telerik:RadTimeView ID="sharedDynamicTimeView" runat="server" StartTime="07:00:00" EndTime="19:00:00" Interval="00:15:00"> </telerik:RadTimeView> <br /> <div style="text-align:right; width:100px"> <asp:Label ID="lblRegularTime" runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px" Text='<%# Eval("OnSiteHours") %>' /> </div> <div style="text-align:right; width:100px"> <telerik:RadNumericTextBox ID="lblOffsiteTime" Runat="server" SkinID="CurrencyOnlyBox" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="98px" Text='<%# Eval("OffSiteHours") %>' CssClass="NumericTextStyle"> </telerik:RadNumericTextBox> </div> <div style="text-align:right; width:100px"> <asp:TextBox ID="lblLunchTime" Runat="server" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="98px" Text='<%# Eval("Lunch") %>' CssClass="NumericTextStyle"> </asp:TextBox> </div> <div style="text-align:left; width:100px"> <asp:DropDownList ID="ddlCategory" Width="100px" BackColor="#f1fdfe" runat="server"> </asp:DropDownList> <asp:Label ID="lblDummy" runat="server" Text="--------------------" Height="20px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px"></asp:Label> </div> <div style="text-align:right; width:100px"> <asp:Label ID="lblTotals" runat="server" Text="0.0" Height="25px" BorderColor="#333399" BorderStyle="Solid" BorderWidth="1px" Width="100px"></asp:Label> </div> </ItemTemplate> </asp:DataList> </div> <table width="520"> <tr> <td style="width: 208px" valign="top"> Notes:</td> <td style="width: 472px"> <asp:TextBox ID="txtNotes" runat="server" Height="77px" TextMode="MultiLine" Width="431px"></asp:TextBox></td> </tr> </table> <table width="520"> <tr> <td style="width: 5103px"> </td> <td style="width: 434px"> <asp:Button ID="btnSubmit" runat="server" Text="Submit" Width="91px" /></td> </tr> </table> </div> </asp:Content>

<telerik:RadGrid ID="gvForecast" runat="server" Width="100%" Height="425px" AutoGenerateEditColumn="false" AutoGenerateColumns="false" GridLines="None" Skin="Office2007" ShowFooter="True" CellSpacing="0" OnCancelCommand="gvForecast_CancelCommand" OnItemDataBound="gvForecast_ItemDataBound" OnItemCreated="gvForecast_ItemCreated" OnItemCommand="gvForecast_ItemCommand" OnColumnCreated="gvForecast_ColumnCreated" AlternatingItemStyle-BackColor="#E2EDFE" >I have been able to programmatically apply formatting to both the XAxis and YAxis (although not successfully for every chart), however, I am unable to figure out how to format the series labels.
For example, I have used the following, which has zero effect upon the series labels - regardless of what is provided in the DefaultLabelValue parameter:
<telerik:ChartSeries DataYColumn="TotalCost" Type="Line" Name="TotalCost" DataLabelsColumn="TotalCost" DefaultLabelValue="#Y{C}">
Nor do any of my codebehind (located within the ItemDataBound event) attempts:
RadChart_ProjectTrends_Costs.PlotArea.Chart.Series[0].DefaultLabelValue
the .Appearance.CustomFormat parameter applies to Style.Axis, and not Chart.Series
Any advice on how to apply *any* formatting to databound values in RadChart would be greatly, greatly appreciated.