Layout Resizing on Browser Resizing (Ext.Net 2.x)

  1. #1

    Layout Resizing on Browser Resizing (Ext.Net 2.x)

  2. #2
    Can you simplify your sample? Please remove all code that is unnecessary to reproduce the problem.
    Geoffrey McGill
    Founder
  3. #3

    [PARTIALLY SOLVED] Layout Resizing on Browser Resizing (Ext.Net 2.x)

    Quote Originally Posted by geoffrey.mcgill View Post
    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.

    <%@ 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
  4. #4

    [SOLVED] Layout Resizing on Browser Resizing (Ext.Net 2.x)

    Solved using <Bin> Section of PagingToolBar.

    Stefano

Similar Threads

  1. Replies: 2
    Last Post: Oct 18, 2013, 2:25 PM
  2. Replies: 8
    Last Post: Apr 03, 2013, 4:17 PM
  3. Not all GridPanels are resizing
    By chris.salas in forum 1.x Help
    Replies: 0
    Last Post: Jan 25, 2011, 2:10 PM
  4. Replies: 1
    Last Post: Mar 17, 2010, 7:39 AM
  5. [CLOSED] Layout resizing issue
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Feb 05, 2010, 2:06 PM

Posting Permissions