[CLOSED] xtrareports and ext.net

  1. #1

    [CLOSED] xtrareports and ext.net

    Hi,

    In a page we have a similar issue to the one in this link http://forums.ext.net/showthread.php...t-directEvents. We try to generate an xtrareports report after user selects some criteria from ext.net combobox and presses a button. Xtrareports again needs postback, for the postback, we set the autopostback property of the button to true. But this time, contents of the comboboxes are cleared. Is there a way of overcoming these problems?

    Regards.
    Last edited by Daniil; Oct 07, 2014 at 5:42 AM. Reason: [CLOSED]
  2. #2
    Hi @metci,

    I cannot reproduce it with the test case below.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                Store store = this.ComboBox1.GetStore();
                store.DataSource = new object[] 
                { 
                    new object[] { "1", "Item 1" },
                    new object[] { "2", "Item 2" },
                    new object[] { "3", "Item 3" }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:ComboBox 
                ID="ComboBox1" 
                runat="server" 
                DisplayField="text" 
                ValueField="value">
                <Store>
                    <ext:Store runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="value" />
                                    <ext:ModelField Name="text" />
                                </Fields>
                            </ext:Model>
                        </Model>
                        <Reader>
                            <ext:ArrayReader />
                        </Reader>
                    </ext:Store>
                </Store>
            </ext:ComboBox>
            <ext:Button runat="server" Text="PostBack" AutoPostBack="true" />
        </form>
    </body>
    </html>

Posting Permissions