[CLOSED] Clear DateField

  1. #1

    [CLOSED] Clear DateField

    Halo ;
    I m using a Date Field with the attribute ReadOnly=true to obligate the user to select the date from the calendar;
    But sometimes this field can be Blank so how can i make the user clear it after selection
    is there any item similar to the demos https://examples1.ext.net/#/Form/Com...Items_Actions/
    to add a remove button inside the datefield
    Thank you in Advance;
    Last edited by Daniil; Dec 16, 2010 at 12:31 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please try the following thing.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:DateField ID="DateField1" runat="server" ReadOnly="true">
            <Triggers>
                <ext:FieldTrigger Icon="Clear" />
            </Triggers>
            <Listeners>
                <TriggerClick Handler="this.clear();" />
                <AfterRender Handler="this.trigger.show();" />
            </Listeners>
        </ext:DateField>    
        </form>
    </body>
    </html>
  3. #3
    Thank You Daniil

    but is it possible with version 0.8.x?

    one more question Can i use the both version (the two dll) in one project ?
  4. #4
    Quote Originally Posted by FpNetWorth View Post
    but is it possible with version 0.8.x?
    Unfortunately, no, custom triggers for DateField is not supported in 0.8.x.

    Quote Originally Posted by FpNetWorth View Post
    one more question Can i use the both version (the two dll) in one project ?
    No, there will be conflict.

Similar Threads

  1. [CLOSED] Clear in NumberField?
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 30, 2012, 1:07 PM
  2. [CLOSED] Clear PropertyGrid
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 02, 2011, 11:55 PM
  3. [CLOSED] Clear Css ComboBox
    By majunior in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: May 24, 2011, 3:41 PM
  4. [CLOSED] DateField clear bug
    By jsemple in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 29, 2009, 7:57 PM
  5. [CLOSED] How to clear store
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 21, 2009, 4:42 PM

Posting Permissions