[CLOSED] Store Callback not firing

  1. #1

    [CLOSED] Store Callback not firing

    Hi,

    I think that due to revision 4362 of Ext.NET 2.1 now this test case isn't working. But if you don't set AutoLoad property, works right.

    TEST CASE
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>GridPanel with FitLayout - Ext.NET Examples</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
    
        <ext:Button runat="server" Text="Reload My Grid">
            <Listeners>
                <Click Handler="grid1.setDisabled(true);
                                grid1.getStore().warningOnDirty = false;
                                grid1.getStore().reload({
                                    callback: function () {
                                        alert('callback raised');
    
                                        grid1.setDisabled(false);
                                    }
                                });
                                grid1.getStore().warningOnDirty = true;" />
            </Listeners>
        </ext:Button>
        <ext:Window ID="Window1" runat="server" Collapsible="true" Maximizable="true" Icon="Lorry"
            Title="Job List" Width="600" Height="300" X="50" Y="50" Layout="Fit">
            <Items>
                <ext:GridPanel ID="grid1" runat="server" Header="false" Border="false">
                    <Store>
                        <ext:Store ID="Store1" runat="server" PageSize="10" AutoLoad="false">
                            <Proxy>
                                <ext:AjaxProxy Url="/Area/Sample/Data">
                                    <Reader>
                                        <ext:JsonReader IDProperty="ID" Root="data" />
                                    </Reader>
                                </ext:AjaxProxy>
                            </Proxy>
                            <Model>
                                <ext:Model runat="server" IDProperty="ID">
                                    <Fields>
                                        <ext:ModelField Name="ID" />
                                        <ext:ModelField Name="Name" />
                                        <ext:ModelField Name="Value" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                            <ext:Column runat="server" Text="ID" Width="40" Sortable="true" DataIndex="ID" />
                            <ext:Column runat="server" Text="Job Name" Sortable="true" DataIndex="Name" Flex="1" />
                            <ext:Column runat="server" Text="Value" Width="120" Sortable="true" DataIndex="Value" />
                        </Columns>
                    </ColumnModel>
                    <View>
                        <ext:GridView runat="server" LoadMask="false" LoadingUseMsg="false" StripeRows="true" TrackOver="true" />
                    </View>
                    <BottomBar>
                        <ext:PagingToolbar runat="server" DisplayInfo="true" DisplayMsg="Displaying Jobs {0} - {1} of {2}" />
                    </BottomBar>
                </ext:GridPanel>
            </Items>
        </ext:Window>
        </form>
    </body>
    </html>
    Last edited by Daniil; Sep 21, 2012 at 11:42 AM. Reason: [CLOSED]
  2. #2
    Thanks for the report. Fixed in SVN
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Tested and working. (rev 4366)

    Thanks

Similar Threads

  1. Store callback twice on data request
    By yossi in forum 1.x Help
    Replies: 1
    Last Post: Jun 06, 2012, 2:55 PM
  2. [CLOSED] Store OnRefreshData callback exectuted twice
    By jeremyl in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 09, 2009, 7:02 AM
  3. [CLOSED] [1.0] Store callback problem
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 20, 2009, 6:19 PM
  4. Callback
    By hbbazan in forum 1.x Help
    Replies: 0
    Last Post: Jul 28, 2009, 3:52 PM
  5. [CLOSED] Store + Reload Callback
    By state in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 29, 2009, 1:24 PM

Tags for this Thread

Posting Permissions