Jul 08, 2011, 10:43 PM
[CLOSED] Using ExtJS 4 charts with Ext.Net
Hi there,
I'm hoping to be able to popup an Ext.Net window and have it load an ExtJS chart inside. I've copied the line chart from the ExtJS samples and have put it in an test html document to see it work:
Thanks for any input.
I'm hoping to be able to popup an Ext.Net window and have it load an ExtJS chart inside. I've copied the line chart from the ExtJS samples and have put it in an test html document to see it work:
<html>
<head>
<title>Line Chart</title>
<script type="text/javascript" src="../../Scripts/ext-all.js" />
<script type="text/javascript">
Ext.Loader.setConfig({
enabled: true,
disableCaching: true,
paths: { 'Ext': "/Scripts/ext/src/" }
});
</script>
<link rel="stylesheet" type="text/css" href="../CSS/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../CSS/example.css" />
<script type="text/javascript" src="../../Scripts/example-data.js"></script>
<script type="text/javascript" src="../../Scripts/lineChart.js"></script>
</head>
<body id="docbody">
</body>
</html>
I can access it if I go to the url directly and it loads fine. However, when I try and load it from an Ext.Window I get a multitude of errors stating that the objects are not supported. Many of the errors related to the new ExtJS 4 functions like.Ext.require('Ext.chart.*');
Here's the code I'm using to attempt to load the chart:<ext:Window
Title=''
runat="server"
AutoDataBind="true"
Modal="true"
ID="ChartWindow"
Width="900"
Height="670"
Hidden="false">
<AutoLoad Url="Content/Static/lineChart.html" />
</ext:Window>
Am I going about this the wrong way in trying to using the Ext.Net dll with the new ExtJS libraries? Is there another way I could go about accomplishing the same thing (ie: have a server-side window popup to load the ExtJS 4 charts)?Thanks for any input.
Last edited by Daniil; Jul 09, 2011 at 5:49 PM.
Reason: [CLOSED]