Printable View
Can you simplify your sample? Please remove all code that is unnecessary to reproduce the problem.
The problem is related to STORE reference in a Panel with Layout=AutoLaytout (see MasterPage), even if the Store is contained in a different ContentPlaceHolder in Master Page.
I partially solved moving each store in relevant Gridpanel.
How in case of a store referenced by a PagingToolBar (I can't find Store section in PagingToolBar)?
In the following a semplified child page when I have a PagingToolBar wtih a reference to a Store.
Code:<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="WebForm2.aspx.cs" MasterPageFile="~/Motors/Motors.Master" Inherits="Motors.Motors.DDT1" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<asp:Content ID="Content2" ContentPlaceHolderID="Code1" runat="Server">
<ext:Store ID="DDT_store" runat="server" >
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="Id">
<Fields>
<ext:ModelField Name="Numero" Type="Int" />
</Fields>
</ext:Model>
</Model>
<Listeners>
<DataChanged
Handler="var record = this.getAt(0) || {};#{Testata_DDT}.getForm().loadRecord(record); "
Delay="10"
/>
</Listeners>
</ext:Store>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="Server" >
<ext:Panel ID="MainPanel" runat="server" Title="Documenti di Trasporto (DDT)">
<Items>
<ext:FormPanel ID="Testata_DDT" runat="server" ButtonAlign="Right" AutoScroll="true" Padding="5" TrackResetOnLoad="true" >
<Items>
<ext:TextField ID="Numero" DataIndex="Numero" runat="server" AnchorHorizontal="95%" FieldLabel="N.DDT" MaxWidth="200" ReadOnly="true" />
</Items>
<BottomBar>
<ext:PagingToolbar ID="DDT_toolbar" StoreID="DDT_store" runat="server" DisplayInfo="false" HideRefresh="true" >
</ext:PagingToolbar>
</BottomBar>
</ext:FormPanel>
</Items>
</ext:Panel>
</asp:Content>
Thanks.
Stefano
Solved using <Bin> Section of PagingToolBar.
Stefano