[FIXED] [#81] Store Autoload property not working

  1. #1

    [FIXED] [#81] Store Autoload property not working

    Hi guys,

    
    <%@ Page Language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <body id="theBody">
        <form runat="server">
            <ext:ResourceManager ID="theManager" runat="server" 
                IDMode="Static"
                Theme="Default"
                ShowWarningOnAjaxFailure="false" 
                DirectMethodProxy="Ignore" 
                ScriptMode="Debug" />
    
    
            <ext:GridPanel runat="server" ID="gp" Width="300" Height="400">
                <TopBar>
                    <ext:Toolbar runat="server">
                        <Items>
                            <ext:Button runat="server" Text="Func">
                                <Listeners>
                                    <Click Handler="TestFunc();" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Store>
                    <ext:Store runat="server" ID="ds" IDMode="Static" AutoLoad="false" GroupField="A" RemoteSort="true">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="A" />
                                    <ext:ModelField Name="B" />
                                </Fields>
                            </ext:Model>
                        </Model>
                        <Proxy>
                            <ext:AjaxProxy Url="/test.aspx/getstore">
                                <ActionMethods Read="GET"></ActionMethods>
                                <Reader>
                                    <ext:JsonReader TotalProperty="total" Root="data"></ext:JsonReader>
                                </Reader>
                            </ext:AjaxProxy>
                        </Proxy>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column runat="server" DataIndex="A" Text="A" />
                        <ext:Column runat="server" DataIndex="B" Text="B" />
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
        </form>
        <script type="text/javascript">
            var TestFunc = function () {App.ds.load();};
        </script>
    </body>
    </html>
    
    //// Server
    
            public StoreResult GetStore()
            {
                return new StoreResult()
                {
                    Data = new List<object>
                    {
                        new { A = "a1", B = "b1" },
                        new { A = "a2", B = "b2" },
                        new { A = "a3", B = "b3" }
                    }
                };
            }
    When applying the following:
    - RemoteSort
    - PagingToolbar
    Autoload is not working. But if I erase GroupField from the property spec. It works.
    That happens when applying latest svn changes. Any thoughts?
    Last edited by Daniil; Dec 21, 2012 at 8:24 AM. Reason: [OPEN] [#81]
  2. #2
    Hi @cleve,

    Thank you! I reported to Sencha.
    http://www.sencha.com/forum/showthread.php?252107
  3. #3
    Sencha opened a bug.

    Created an Issue to track this defect.
    https://github.com/extnet/Ext.NET/issues/81

    As a workaround I can suggest to prevent a load request returning false from a Store's BeforeLoad listener.
  4. #4
    Both the Sencha team and the Ext.NET team can no longer reproduce this issue as of Ext.NET 4.x.

    Please let us know if you run into the same problem with Ext.NET 4.x (or higher) and we will reopen this Issue for investigation. Going forward, support for this issue can only be provided for Ext.NET 4.x (or higher).
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 6
    Last Post: Mar 11, 2014, 12:19 PM
  2. Replies: 5
    Last Post: May 17, 2013, 11:54 AM
  3. [CLOSED] AutoLoad PassParentSize property
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 08, 2010, 2:27 AM
  4. Replies: 1
    Last Post: Jun 17, 2009, 4:47 PM
  5. Change to AutoLoad Property
    By geoffrey.mcgill in forum Open Discussions
    Replies: 14
    Last Post: Apr 22, 2009, 5:55 AM

Posting Permissions