Jan 25, 2017, 2:41 PM
[CLOSED] Is it possible that the displayed calendar corresponds to the min/max date defined?
Hi Ext.Net Team !!
Please check the code sample below:
I have taken your example to present my issue
http://examples4.ext.net/#/Form/Date...From-To_Range/
Step 1. For the
Step 2. For the
Can you help with the code?
I accept suggestions ideas or comments, Hi Ext.Net Team !!
Please check the code sample below:
I have taken your example to present my issue
https://examples4.ext.net/#/Form/Dat...From-To_Range/
Step 1. For the “From†field, select a future date, for example March 01
Step 2. For the “To†field, clicking on the calendar button displays the current month
Can you help with the code?
I accept suggestions ideas or comments
Please check the code sample below:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>Multiple DateFields with DateRange Validation - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<h1>Multiple DateFields with DateRange Validation</h1>
<p>This example demonstrates two date fields acting as a date range. Selecting an initial date sets the minimum value for the end field. Selecting an ending date sets a maximum value for the start field.</p>
<p>If a value is specified / selected in the 'DateField1 field', the 'DateField2 field' doesn't allow any date prior to the 'DateField1' entry to be specified / selected and vice versa.</p>
<ext:Window ID="Window1"
runat="server"
Width="350"
Title="DateRange"
Icon="Date"
Closable="false"
BodyPadding="5"
Layout="Anchor"
DefaultAnchor="100%">
<Items>
<ext:DateField
ID="DateField1"
runat="server"
Vtype="daterange"
FieldLabel="From">
<Listeners>
<Change Handler="if (App.DateField2.getValue() == null) App.DateField2.setValue(newValue);" />
</Listeners>
<CustomConfig>
<ext:ConfigItem Name="endDateField" Value="DateField2" Mode="Value" />
</CustomConfig>
</ext:DateField>
<ext:DateField
ID="DateField2"
runat="server"
Vtype="daterange"
FieldLabel="To">
<CustomConfig>
<ext:ConfigItem Name="startDateField" Value="DateField1" Mode="Value" />
</CustomConfig>
</ext:DateField>
</Items>
</ext:Window>
</form>
</body>
</html>
Is it possible that the displayed calendar corresponds to the min/max date defined?I have taken your example to present my issue
http://examples4.ext.net/#/Form/Date...From-To_Range/
Step 1. For the
From
field, select a future date, for example March 01Step 2. For the
To
field, clicking on the calendar button displays the current monthCan you help with the code?
I accept suggestions ideas or comments, Hi Ext.Net Team !!
Please check the code sample below:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>Multiple DateFields with DateRange Validation - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<h1>Multiple DateFields with DateRange Validation</h1>
<p>This example demonstrates two date fields acting as a date range. Selecting an initial date sets the minimum value for the end field. Selecting an ending date sets a maximum value for the start field.</p>
<p>If a value is specified / selected in the 'DateField1 field', the 'DateField2 field' doesn't allow any date prior to the 'DateField1' entry to be specified / selected and vice versa.</p>
<ext:Window ID="Window1"
runat="server"
Width="350"
Title="DateRange"
Icon="Date"
Closable="false"
BodyPadding="5"
Layout="Anchor"
DefaultAnchor="100%">
<Items>
<ext:DateField
ID="DateField1"
runat="server"
Vtype="daterange"
FieldLabel="From">
<Listeners>
<Change Handler="if (App.DateField2.getValue() == null) App.DateField2.setValue(newValue);" />
</Listeners>
<CustomConfig>
<ext:ConfigItem Name="endDateField" Value="DateField2" Mode="Value" />
</CustomConfig>
</ext:DateField>
<ext:DateField
ID="DateField2"
runat="server"
Vtype="daterange"
FieldLabel="To">
<CustomConfig>
<ext:ConfigItem Name="startDateField" Value="DateField1" Mode="Value" />
</CustomConfig>
</ext:DateField>
</Items>
</ext:Window>
</form>
</body>
</html>
Is it possible that the displayed calendar corresponds to the min/max date defined?I have taken your example to present my issue
https://examples4.ext.net/#/Form/Dat...From-To_Range/
Step 1. For the “From†field, select a future date, for example March 01
Step 2. For the “To†field, clicking on the calendar button displays the current month
Can you help with the code?
I accept suggestions ideas or comments
Last edited by fabricio.murta; Jan 27, 2017 at 5:56 AM.