[CLOSED] Datefield has been changed from its original value

  1. #1

    [CLOSED] Datefield has been changed from its original value

    as the intercept server side?
    isDirty() work only client-side ?
    Last edited by Daniil; Oct 15, 2010 at 4:46 PM. Reason: [CLOSED]
  2. #2
    Hi,

    What about the Change direct event?
    Please look at the following example.
    But seems there is an issue with it in IE - the example doesn't work as expected. Otherwise everything works fine in FF .

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void ChangeHandler(object sender, DirectEventArgs e)
        {
            DateField df = sender as DateField;
            X.Msg.Alert("ChangeHandler", "New date: " + df.SelectedDate.ToShortDateString()).Show();
        }
    </script>
    
    <!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 runat="server" OnDirectChange="ChangeHandler" />
        </form>
    </body>
    </html>
    isDirty() work only client-side ?
    Yes, it has meaning only on a client side.
  3. #3
    I was wrong, it works fine in IE too.

    Also, consider the possibility of using the Select direct event.
    It is fired when a date is selected as opposed to Change event which is fired after blur.

Similar Threads

  1. [CLOSED] How do I recover my original string, with accents?
    By supera in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 25, 2012, 12:08 PM
  2. [CLOSED] [1.0] Original portlets lose content when copied
    By betamax in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Jun 09, 2010, 11:38 AM
  3. [CLOSED] Original values in ext:Store
    By Christof in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 17, 2010, 1:17 PM
  4. Replies: 1
    Last Post: Dec 26, 2009, 7:59 AM
  5. DateField HideTrigger cannot be changed
    By EzaBlade in forum 1.x Help
    Replies: 4
    Last Post: Nov 02, 2009, 8:46 AM

Posting Permissions