or
foreach (ChartSeriesItem item in RadChart1.Series[0].Items)
{
item.Appearance.FillStyle.MainColorOpacity = 255;
item.Appearance.FillStyle.MainColor = item.YValue2 > item.YValue ? Color.Green : Color.Red;
}
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AjaxPanelUC.ascx.cs" |
Inherits="Controls_AjaxPanelUC" %> |
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" |
Height="200px" Width="300px"> |
<asp:Button ID="Button1" runat="server" Text="Button" /> |
</telerik:RadAjaxPanel> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" |
InitialDelayTime="0" Width="75px"> |
<asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="/RadAjaxTest/Images/loadingbar.gif" /> |
</telerik:RadAjaxLoadingPanel> |
Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<%@ Register Src="Controls/AjaxPanelUC.ascx" TagName="AjaxPanelUC" |
TagPrefix="uc1" %> |
<!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>Untitled Page</title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<div> |
<uc1:AjaxPanelUC ID="AjaxPanelUC1" runat="server" /> |
</div> |
</form> |
</body> |
</html> |
Stack Trace:
[ArgumentException: Cannot read the configuration/dictionary language parameters!]
Telerik.Web.UI.SpellCheckHandlerNoSession.ProcessRequest(HttpContext context) +628
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
The dictionaries are in the correct place /App_Data/RadSpell, although deleting that folder doesn't seem to make any difference, and I am not setting the dictionary path differently anywhere else, and even if I do set the Dictionary Path explicitly I get the same error. Can you help?