Mar 01, 2014, 11:56 PM
[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:
Aurelio
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:
<%@ 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>
ThanksAurelio
Last edited by Daniil; Mar 03, 2014 at 5:31 AM.
Reason: [CLOSED]