[CLOSED] DateField Layout SV:5692

  1. #1

    [CLOSED] DateField Layout SV:5692

    Hi, i have a problem then open the pick of the datafield, is don't out of the window.

    in the sample: https://examples2.ext.net/#/Form/Dat...From-To_Range/
    is work OK.

    I use the Desktop component and open a window on the desktop:
    Open this form and click an a button "Click My in the desktop, is open the window, click on the calendar pick, is not work ok:

    this image of the result:
    Click image for larger version. 

Name:	Immagine.png 
Views:	33 
Size:	7.7 KB 
ID:	7641


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebForm1" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
       <body>
            <form id="form1" runat="server">
                <ext:ResourceManager ID="ResourceManager1" runat="server" Namespace="" Theme="Gray" DirectMethodNamespace="Procedure" />
                <ext:Desktop ID="DesktopHome" runat="server">
                    <DesktopConfig ID="DesktopConfigHome" Wallpaper="Images/desk.jpg" WallpaperStretch="true">
                        
                    </DesktopConfig>
                    <Modules>
                        <ext:DesktopModule ModuleID="movCan">
                            <Launcher Text="Movimenti cantina" Handler="openMovCan(#{DesktopHome})" />
                            <Shortcut Name="Click Me" Handler="openMovCan(#{DesktopHome})" X="30" Y="95">
                            </Shortcut>
                        </ext:DesktopModule>                   
                    </Modules>
                    <StartMenu Title="Test" Icon="Application" Height="300">
                        <ToolConfig>
                            <ext:Toolbar runat="server" Width="100">
                                <Items>
                                    <ext:Button runat="server" Text="Esci" IconCls="logOutIcon" Scale="Medium">
                                        <Listeners>
                                            <Click Handler="esci();" />
                                        </Listeners>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </ToolConfig>
                    </StartMenu>
                       <TaskBar TrayWidth="100">
                    <QuickStart>
                        <ext:Toolbar runat="server">
                            <Items>
                                <ext:Button runat="server" Handler="tile" Icon="ApplicationTileVertical">
                                    <QTipCfg Text="Finestre affiancate" />
                                </ext:Button>
                                <ext:Button runat="server" Handler="cascade" Icon="ApplicationCascade">
                                    <QTipCfg Text="Finestre in cascata" />
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </QuickStart>               
                </TaskBar>
                </ext:Desktop>
            </form>
            <script type="text/javascript">
    
                var show = function (app, windowId, pagina, titolo, icona, width, height) {
                    var desktop = app.getDesktop()
    
                    //Controlla se la finestra ? gi? aperta
                    win = desktop.windows.get(windowId);
    
                    if (!win) {
                        //Se non ? gi? aperta crea la nuova finestra
                        var cfg = {
                            id: windowId,
                            runat: 'server',
                            title: titolo,
                            iconCls: icona,
                            x: 20,
                            y: 20,
                            width: width,
                            height: height,
                            maxHeight: (app.viewport.height - 100),
                            closeAction: 'Destroy',
                            minimizable: true,
                            maximizable: true,
                            border: true,
                            loader: {
                                url: pagina,
                                renderer: 'frame',
                                loadMask: {
                                    showMask: true,
                                    msg: Ext.String.format('Caricamento ' + titolo)
                                }
                            }
                        };
                        win = desktop.createWindow(cfg);
                    }
                    win.show();
                };
    
                var openMovCan = function (app) {
                    show(app, 'winMovCan', 'WebForm2.aspx', 'Archivio movimenti di cantina', 'movCanIcon', 500, 200);
                };
    
    
                var esci = function () {
                    $.msgbox({
                        type: 'confirm',
                        content: 'Esco dal programma ?',
                        title: 'Avviso:',
                        buttons: ['Si', 'No'],
                        buttonEvents: {
                            'Si': function () {
                                Procedure.Exit();
                            },
                            'No': function () {
                                this.close();
                            }
                        }
    
                    });
                }
    
                var tile = function () {
                    Ext.net.Desktop.desktop.tileWindows();
                };
    
                var cascade = function () {
                    Ext.net.Desktop.desktop.cascadeWindows();
                };
    
    
            </script>
        </body>
    </html>
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebForm2" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
            <body>
            <form id="form1" runat="server">
                <ext:ResourceManager ID="ResourceManager1" runat="server" Namespace="" DirectMethodNamespace="Procedure"/>
                <ext:Viewport runat="server" Layout="FitLayout">
                    <Items>
                        <ext:FormPanel ID="FormPanelCon" runat="server"
                                       BodyPadding="20" Padding="3" layout="FormLayout"
                                       AnchorHorizontal="100%" Width="500" FormBind="true"  >
                            <Defaults>
                                <ext:Parameter Name="MsgTarget" Value="side" />
                            </Defaults>
                            <FieldDefaults LabelWidth="100" />
                            <Items>
                                <ext:TextField ID="txtCodCan" runat="server"  Width="250" AllowBlank="false" 
                                               BlankText="Codice cantina obbligatorio."
                                               MaxLength="10" MaxLengthText="Lunghezza massima 10 caratteri."
                                               FieldLabel="Codice cantina" FieldCls="txtObbligatorio" TabIndex="1">
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTipCodCan" runat="server" Title="Codice" Html="Codice cantina">
                                        </ext:ToolTip>
                                    </ToolTips>
                                    <Listeners>
                                        <ValidityChange Handler="#{ToolTipCodCan}[isValid ? 'enable' : 'disable']();" />
                                    </Listeners>
                                </ext:TextField>
                                <ext:DateField 
                                    ID="txtFogCanDat" 
                                    runat="server" Width="250" 
                                    FieldLabel="Data foglio" 
                                    AllowBlank="false" 
                                    BlankText="Data obbligatoria." TabIndex="2" 
                                    FieldCls="txtObbligatorio" >
                                    <ToolTips>
                                        <ext:ToolTip ID="ToolTipFogCanDat" runat="server" Title="Data" Html="Data foglio cantina">
                                        </ext:ToolTip>
                                    </ToolTips>
                                    <Listeners>
                                        <ValidityChange Handler="#{ToolTipFogCanDat}[isValid ? 'enable' : 'disable']();" />
                                    </Listeners>
                                </ext:DateField>
                            </Items>
                   
                        </ext:FormPanel>
                    </Items>
                </ext:Viewport>
            </form>
        </body>
    
    </html>
    Thanks
    Aurelio
    Last edited by Daniil; Mar 03, 2014 at 5:31 AM. Reason: [CLOSED]
  2. #2
    Widget cannot be displayed outside iframe (it is like to request to display datefield outside browser)
    So, do not use iframe or increase the window height
  3. #3
    HI, Vladimir...

    In the previous version of Ext.Net it's work ok, i update my project to this version and the problem appear..

    however, I will increase the size of the window..(Close the thread..thanks)

    How can I open a non-iframe windows and display a page of my project ? (not a usercontrol). its' possible ?

    Thanks
    Aurelio
    Last edited by Aurelio; Mar 02, 2014 at 4:53 PM.
  4. #4
    In the previous version of Ext.Net it's work ok, i update my project to this version and the problem appear..
    No, it is not possible. Widget cannot violate the iframe boundary

    How can I open a non-iframe windows and display a page of my project ? (not a usercontrol). its' possible ?
    No, page cannot be nested to another page (especially, if both page contains form tag) without iframe
  5. #5
    Hi, Vladimir...

    Sorry ..double sorry, i view my old project and the view is not iframe, here it's where the sample.into the same page..

    Thanks
    Aurelio

Similar Threads

  1. Replies: 6
    Last Post: Jan 09, 2013, 10:30 AM
  2. [CLOSED] layout issue when using RowLayout within column layout
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 11, 2012, 2:40 PM
  3. [CLOSED] VBoxLayout layout does not refresh the layout automatically
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 23, 2011, 1:52 PM
  4. Replies: 7
    Last Post: Aug 12, 2011, 2:30 PM
  5. [CLOSED] Basic Layout question for Layout Fit / AutoHeight
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 07, 2010, 11:57 AM

Posting Permissions