We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

JavaScript runtime error: '$sf' is undefined

Thread ID:

Created:

Updated:

Platform:

Replies:

118638 Mar 26,2015 11:34 AM Mar 27,2015 03:30 AM ASP.NET Web Forms 1
loading
Tags: Chart
Bruce Stevenson
Asked On March 26, 2015 11:34 AM

I an at a loss as to what is missing.
this is where the brake takes me.
$sf.ChartAdv = function(element, options) {
    this.element = element;
    this.model = options;
    this.m_minPointsDelta = Number.NaN;
    this.CreateCanvasCore(this.element);
};
My Page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Defualt.aspx.cs" Inherits="AdvChart.Defualt" %>
 
<%@ Register Assembly="Syncfusion.Shared.Web, Version=12.3400.0.36, Culture=neutral, PublicKeyToken=x"
	Namespace="Syncfusion.Web.UI.WebControls.Shared" TagPrefix="syncfusion" %>
 
<%@ Register Assembly="Syncfusion.Chart.Web, Version=12.3400.0.36, Culture=neutral, PublicKeyToken=x"
	Namespace="Syncfusion.Web.UI.WebControls.Chart.ChartAdv" TagPrefix="cc1" %>
 
<!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>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>
	<script src="http://cdn.syncfusion.com/js/web/ej.web.all-latest.min.js"></script>
	<script src="http://cdn.syncfusion.com/js/web/ej.widget.angular.min.js"></script>
</head>
<body>
	<form id="form1" runat="server">
		<syncfusion:SFScriptManager ID="SFScriptManager1" runat="server" EnablePartialRendering="true">
		</syncfusion:SFScriptManager>
		<div>
			<cc1:ChartAdv ID="ChartAdv1" runat="server" />
		</div>
	</form>
</body>
</html>
My References:
Syncfusion.Chart.Base
Syncfusion.Chart.Web
Syncfusion.Shared.Web

Jayavigneshwaran [Syncfusion]
Replied On March 27, 2015 03:30 AM

Hi Bruce,

Thanks for using Syncfusion product. We have analyzed this.

The problem is with your dll reference. To render a chart control in ASP.NET Classic platform you have to refer “Syncfusion.Core.dll” along with other required dlls.

The below link shows the dll required to render the chart control in ASP.NET Classic platform

Link: http://help.syncfusion.com/ug/asp.net/documents/dlls1.htm

The below link shows the dll required to render HTML 5 chart (ChartAdv)

Link: http://help.syncfusion.com/ug/asp.net/documents/dlls2.htm

The below shows the dll required to render chart in ASP.NET platform

· Syncfusion.EJ.dll

· Syncfusion.EJ.Web.dll

We have also made sample for your reference in which chart is rendered in ASP.NET Classic platform. Find it from the below location
WebApplication1.zip

And also kindly revert back us your platform you are using. Since you mentioned ASP.NET on creating forum, but reference are related to ASP.NET Classic.

This will help us to provide sample in exact platform. The below link shows the difference between ASP and ASP Classic platform.

Link: https://www.syncfusion.com/kb/3796/what-is-the-difference-between-asp-netclassic-and-asp-netejweb

Please let us know if you have any concern.

Thanks,

Jayavigneshwaran


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;