[CLOSED] Datefield Custom Range

  1. #1

    [CLOSED] Datefield Custom Range

    Hi,

    I have two Datefields, with a startdatefield and enddatefield custom config.

    
    <ext:DateField ID="dfPlanDate" Editable="false" runat="server" FieldLabel="G?ltig ab" Name="PlanDate" Format="dd.MM.yyyy" TabIndex="3" Vtype="daterange">
    <CustomConfig>
    <ext:ConfigItem Name="endDateField" Value="dfValidUntil" Mode="Value" />
    </CustomConfig>
    </ext:DateField>
    
    <ext:DateField ID="dfValidUntil" Editable="false" runat="server" FieldLabel="G?ltig bis" Name="ValidUntil" Format="dd.MM.yyyy" TabIndex="3" Vtype="daterange" Width="225">
    <CustomConfig>
    <ext:ConfigItem Name="startDateField" Value="dfPlanDate" Mode="Value" />
    </CustomConfig>
    </ext:DateField>

    Now my new requirement is, to allow only a range of 14 days between startdate and enddate.

    Is there an easy way to achieve that?

    Regards
    Last edited by Daniil; Aug 05, 2014 at 12:59 PM. Reason: [CLOSED]
  2. #2
    Hi @blueworld,

    I think, there is no such a possibility built-in.

    I suggest you to review the "daterange" VType and adjust it as needed.
    trunk\Ext.Net\Build\Ext.Net\extnet\src\utils\VTypes.js

Similar Threads

  1. [CLOSED] Clean the previously range selected from "Ext: DateField"
    By opendat2000 in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 25, 2014, 11:00 AM
  2. [CLOSED] DateField range with MasterPage
    By kevinhwang in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 28, 2013, 3:14 PM
  3. [CLOSED] DateField - From To Range
    By thchuong in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 08, 2012, 9:17 AM
  4. Datefield Control not visible in a Custom Dialog Box
    By novicefromtexas in forum 1.x Help
    Replies: 0
    Last Post: Oct 22, 2009, 6:52 PM
  5. [CLOSED] DateField not working when using custom format
    By alexp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 22, 2009, 10:33 AM

Posting Permissions