[CLOSED] Dynamic Chart and Store

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Dynamic Chart and Store

    Last edited by Daniil; Sep 24, 2012 at 4:08 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please clarify are you rendering the Chart during DirectEvent?
  3. #3
    Yes, at the end of the button I call the method CriarGraficoDinamico.
  4. #4
    I tested your code applying required changes to get it runnable. It appears to work well.

    Please ensure the ModeFields meets the data that you bind to the Store.

    If the issue persists, please provide a full sample to reproduce.

    Though, for the beginning you can post a DirectEvent response. We could investigate a script, maybe we will discover obvious problems.
  5. #5
  6. #6
    Hi,

    I created a simple screen without my masterpage and it worked, Is there something wrong with her?

    Please forget the previous code.

    MasterPage Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Principal.master.cs"
        Inherits="PD.Gerencial.Aplicacao.Comuns.PaginasMestre.Principal" %>
    
    <%@ Register Src="~/Comuns/Controles/Ajuda.ascx" TagName="Ajuda" TagPrefix="uc" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head runat="server">
        <ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" Mode="ScriptFiles" runat="server" />
    </head>
    <style>
        .x-grid3-hd-row td
        {
            text-align: center;
        }
    </style>
    <link rel="Stylesheet" type="text/css" href="<%=ResolveClientUrl("~/Comuns/Css/Site.css")%>" />
    <script type="text/javascript" id="lnkScript" src="<%=ResolveClientUrl("~/Comuns/Js/geral.js")%>"></script>
    <body>
        <script type="text/javascript" language="javascript">
            Ext.data.Connection.override({
                timeout: 360000
            });
            Ext.form.BasicForm.override({
                timeout: 360000
            });
            Ext.Ajax.timeout = 360000;
            Ext.net.DirectEvent.timeout = 360000;
        </script>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="rmPrincipal" runat="server">
            <Listeners>
                <DocumentReady Handler="Ext.Ajax.timeout = 60000000" />
            </Listeners>
        </ext:ResourceManager>
        <ext:Viewport runat="server" Layout="FitLayout">
            <Content>
                <asp:ContentPlaceHolder ID="CenterRegion" runat="server">
                </asp:ContentPlaceHolder>
            </Content>
        </ext:Viewport>
        </form>
    </body>
    </html>
  7. #7
    Hi @pdcase,

    No, I can't see anything in the master page which can break the page. Is there any JavaScript error?

    There is a chance that this can help to determine the problem.

    Quote Originally Posted by Daniil View Post
    Though, for the beginning you can post a DirectEvent response. We could investigate a script, maybe we will discover obvious problems.
    Though, providing us with a sample to reproduce the problem gives you the best chance to get a solution. Maybe this technique will help you to create a sample and/or narrow the problem.
    How to prepare a sample
  8. #8
    Hi,

    I'll try this.

    Thanks.
  9. #9
  10. #10
    During a DirectEvent or DirectMethod it is required to manually a widget manually calling, for example, its Render method. As you did in the first example.

    Could you clarify what Ext.NET sources do you use? I would recommend to update from the 2.1 branch. Maybe, your initial code will work.
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: Aug 13, 2012, 2:12 PM
  2. Replies: 12
    Last Post: Sep 20, 2011, 2:33 PM
  3. Replies: 0
    Last Post: Mar 04, 2011, 12:05 PM
  4. Replies: 0
    Last Post: Mar 04, 2011, 6:46 AM
  5. Replies: 11
    Last Post: Dec 14, 2010, 6:42 AM

Posting Permissions