[CLOSED] How to disable typing on a DateField

  1. #1

    [CLOSED] How to disable typing on a DateField

    How can I disable typing on the DateField control? I want to force the users to select the date from the calendar.
    (In Telerik, there is a property called EnableTyping which can be set to True or False).
    Last edited by Daniil; Oct 28, 2011 at 6:05 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please set up ReadOnly="true".
  3. #3
    Thanks for the prompt reply.

    I have already tried that ... but if I set ReadOnly="true" the calendar icon does not appear on the control, i.e. the users are not able to change the date at all. I still want to allow the users to change the date by selecting a date from the calendar but not by typing the date on the control.

    My code segment is as follows:
    <ext:DateField ID="dfStartDate" AllowBlank="false" Format="dddd, d MMMM yyyy" ReadOnly="true" Width="200" Vtype="daterange" runat="server">
        <CustomConfig>
            <ext:ConfigItem Name="endDateField" Value="#{dfEndDate}" Mode="Value" />
        </CustomConfig>                        
    </ext:DateField>
  4. #4
    My fault, please set up Editable="false".
    http://docs.sencha.com/ext-js/3-4/#!...d-cfg-editable
  5. #5
    Thanks for the help.

Similar Threads

  1. [CLOSED] Disable Validation Tooltip in DateField
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 02, 2012, 1:52 PM
  2. [CLOSED] DateField: How to disable auto correct?
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 08, 2011, 8:14 AM
  3. [CLOSED] DateField with days disable
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 01, 2010, 2:26 PM
  4. [CLOSED] Disable specific dates and ranges in the DateField control
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 23, 2010, 5:56 PM
  5. Disable DateField using Javascript
    By Suraj in forum 1.x Help
    Replies: 2
    Last Post: Sep 14, 2009, 5:42 PM

Tags for this Thread

Posting Permissions