[CLOSED] DateFiled simple question

  1. #1

    [CLOSED] DateFiled simple question

    If you want to set today's date as a max value in Datefiled and have the rest grayed out, what is the correct approach

    i currently have, which is not working

    <ext:DateField
                                    ID="txtDate"
                                    runat="server"
                                    FieldLabel="Run Date"
                                    IndicatorIcon="Date"
                                    Width="500"
                                    MaxDate='<%# DateTime.Today %>'
                                    StandardVtype="DateRange"
                                    Format="yyyy-MM-dd"
                                    InvalidText="Invalid Format. dd-MM-yyyy"
                                    IndicatorTip="Choose an excution date"
                                    AllowBlank="False">
    Last edited by Baidaly; Dec 15, 2012 at 10:46 PM. Reason: [CLOSED]
  2. #2
    You need to add

    AutoDataBind="True"
    to the list of attributes.
  3. #3
    Hello, @Pyropace!

    Yes, @bogc is right. You should add AutoDataBind="True".

    http://forums.ext.net/showthread.php...g-in-DateField
  4. #4
    Thanks it worked

Similar Threads

  1. Replies: 1
    Last Post: Sep 13, 2011, 5:19 PM
  2. Very simple question TreePanel check or uncheck all
    By apocalipse9 in forum 1.x Help
    Replies: 0
    Last Post: Jun 17, 2010, 12:36 AM
  3. [CLOSED] Simple Question: Add Script to ScriptManager via Ext Javascript.
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 12, 2009, 4:06 AM
  4. [CLOSED] Simple radiogroup question
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 24, 2009, 5:56 AM
  5. [CLOSED] Simple date render question
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 05, 2008, 1:31 PM

Posting Permissions