Results 1 to 2 of 2

Thread: grid rowediting date field problem

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default Answered: grid rowediting date field problem

    Hi

    before row editing date looks like this

    pic1.JPG
    after edit

    pic2.JPG

    any idea how to prevent this happening?

  2. try this in your column:

    Code:
    editor: {
      xtype: 'datefield',
      format: 'j/n/Y'
    },
    renderer : Ext.util.Format.dateRenderer('d/m/Y')
    where you can set the format e.g. j-n-Y for date-month-year instead of j/n/Y and the renderer controls how the date will be displayed.

    Regards,
    Farish

  3. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,101
    Answers
    113
    Vote Rating
    100
      0  

    Default

    try this in your column:

    Code:
    editor: {
      xtype: 'datefield',
      format: 'j/n/Y'
    },
    renderer : Ext.util.Format.dateRenderer('d/m/Y')
    where you can set the format e.g. j-n-Y for date-month-year instead of j/n/Y and the renderer controls how the date will be displayed.

    Regards,
    Farish

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •