[CLOSED] Using ExtJS 4 charts with Ext.Net

  1. #1

    [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:

    <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]
  2. #2
    Hi PLoch,

    Try setting the following in the <AutoLoad> config.

    Example

    <AutoLoad Url="Content/Static/lineChart.html" Mode="IFrame" />
    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    That works, thanks.
  4. #4
    hi
    im trying to do the same but its not working for me
    would u please help me?
    can i ask whats in ur lineChart.html ?
    because my problem is that i see nothing in the pop up window and even when i navigate to the .html where i put an example from the sencha site (in fact i tried several examples) i still get nothing
    and i have no errors
    thanks in advance
  5. #5
    Quote Originally Posted by astrocybernaute View Post
    hi
    im trying to do the same but its not working for me
    would u please help me?
    can i ask whats in ur lineChart.html ?
    because my problem is that i see nothing in the pop up window and even when i navigate to the .html where i put an example from the sencha site (in fact i tried several examples) i still get nothing
    and i have no errors
    thanks in advance
    @astrocybernaute - It would be best to start a new thread.

    Please feel free to cross-link between threads if you feel they are related.
    Geoffrey McGill
    Founder
  6. #6
    ok thanks
    so i created a new thread,hope its in the right place
    here is the link
    http://forums.ext.net/showthread.php...1265#post61265
  7. #7
    Hi,

    The ExtJS charts has been included into Ext.NET v2.
    https://examples2.ext.net/#/Chart/Dashboard/Basic/

    More details about Ext.NET v2 are here:
    http://forums.ext.net/showthread.php?16883

Similar Threads

  1. [CLOSED] Possible to use v2 Charts in v1 app?
    By jchau in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 27, 2015, 6:16 AM
  2. Wow.. extjs Charts
    By CarWise in forum Open Discussions
    Replies: 4
    Last Post: May 18, 2012, 7:19 AM
  3. [CLOSED] Extjs Charts and Group By Question
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 12, 2012, 4:07 PM
  4. Using ExtJS 4 charts with Ext.Net (coolite)
    By astrocybernaute in forum 1.x Help
    Replies: 3
    Last Post: Jan 12, 2012, 4:06 PM
  5. [CLOSED] Charts
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 12, 2012, 4:06 PM

Tags for this Thread

Posting Permissions