[CLOSED] URGENT - Another Problem after update from SVN

  1. #1

    [CLOSED] URGENT - Another Problem after update from SVN

    Hi,

    after update from SVN all DateColumn are no longer formatted as before.
    I'm italian and I'm using a modified version of the file ext-lang-it.js. In particular this is the modification for DateColumn prototype:

      if(Ext.grid.DateColumn){
          Ext.apply(Ext.grid.DateColumn.prototype, {
              format : 'd/m/Y'
          });
      }
    This is my web.config for for extnet section:

      <extnet idMode="Explicit"
              initScriptMode="Linked"
              scriptMode="Debug"
              theme="Default"
              locale="it-IT" />
    and this is my DateColumn declaration:

       <ext:DateColumn ColumnID="TheDate" DataIndex="TheDate" Header="Data" Width="100" Align="Center" Sortable="false" />
    Before the update from SVN, the date February 15th , 2007 was displayed as 15/02/2007, now is displayed as 2/15/2007.

    Obviously, I recompiled Ext.Net using my modified version of ext-lang-it.js
    Please consider that my modified file contains also a modification for NumberColumn prototype and it's work correctly:

    if(Ext.grid.NumberColumn){
        Ext.apply(Ext.grid.NumberColumn.prototype, {
            format : '0.000,00/i'
        });
    }
    Bye,
    Stefano
    Last edited by Daniil; Mar 09, 2011 at 1:32 PM. Reason: [CLOSED]
  2. #2
    Hi,

    DateColumn has default value for Format property which depends from current locale. If you want to another format you have to define required format for Format property of the column. Or create own column class which inherited from DateColumn and override Format property
    Last edited by geoffrey.mcgill; Mar 08, 2011 at 7:17 PM.
  3. #3
    Hi Vladimir,

    probably you did not understand. Did you see the code in my post?
    My code compiled with the version of Ext.net of December 2010 works correctly.
    My code compiled with the version downloaded yesterday doesn't work.

    Let me know if you need additional information or code.

    Bye,
    Stefano
  4. #4
    Hi Stefanaccio,

    We are investigating this issue.

    As a temp fix/work-around, you can set the Format property of the <ext:DateColumn> to "dd/MM/yyyy"

    Example

    Format="dd/MM/yyyy"
    Geoffrey McGill
    Founder
  5. #5
    Hi Geoffrey,

    the workaround you suggested is not good for me.
    I'm using italian locale but my application can work with other locals based on the settings in web.config.
    For this reason I would not hard-code the format.

    Bye,
    Stefano
  6. #6
    I've committed a change to the <ext:DateColumn> .Format property [DefaultValue]. New value is "", old value was "d".

    Now the default date format of DateColumn will be based upon the Locale file.

    SVN revision #3493
    Geoffrey McGill
    Founder
  7. #7
    Hi Geoffrey,

    it's OK, thanks.

    You can mark as CLOSED.

    Bye,
    Stefano

Similar Threads

  1. [CLOSED] Problem after update from SVN
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 08, 2011, 12:53 PM
  2. [CLOSED] Problem with SVN Update
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 03, 2010, 9:41 AM
  3. [CLOSED] Error after update frm SVN - URGENT!
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 28, 2010, 7:21 AM
  4. [CLOSED] Problem with checkbox due to SVN update
    By CSG in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 25, 2009, 8:09 AM
  5. [CLOSED] Urgent layout problem
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 21, 2009, 4:11 AM

Tags for this Thread

Posting Permissions