1. #1
    Ext User
    Join Date
    Oct 2007
    Location
    Central England
    Posts
    169
    Vote Rating
    0
    tjcrowder is on a distinguished road

      0  

    Default [2.0b1] Date *and* Time Field anyone?

    [2.0b1] Date *and* Time Field anyone?


    Hi folks,

    I don't suppose anyone out there has already built a DateTimeField they're happy to share? It's a faint hope, but I need to edit a date/time value in a grid (splitting it up into two separate columns isn't an option), so I'm looking for a combined field to use as the editor which handles both the date and the time part.

    Separately, if no one just happens to have written this for me , any advice for how to get started creating one would be greatly appreciated. It seems like it should be dead easy to create a new Field which is just a DateField next to a TimeField, but I'm still finding my way around... (The other option, of course, would be to extend DatePicker to optionally handle time values as well and then make sure the new config option gets passed through to it from DateField [via DateMenu and DateItem]. That's probably the better route, but more complicated...)

    Thanks in advance,
    T.J. Crowder
    tj / crowdersoftware / com

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    We have written one, but not to share.

    I think it's going to be rewritten though to use two linked Ext fields, a DateField, and TimeField which do not get submitted, and a hidden which is updated onchange with the full ISO 8601 datetime string and is submitted to the server.

    It should not be too hard to wrap the two up in 2 cells of a table.

  3. #3
    Ext User
    Join Date
    Oct 2007
    Location
    Central England
    Posts
    169
    Vote Rating
    0
    tjcrowder is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    We have written one, but not to share.
    Drat.

    Quote Originally Posted by Animal View Post
    It should not be too hard to wrap the two up in 2 cells of a table.
    Yeah, in the short term it shouldn't be too hard. Tempting to get into DatePicker and extend it (not least to better understand Ext components), but if it's going to be revamped before too long anyway, I'll look at short- to medium-term workarounds.

    Thanks (as always),
    T.J. Crowder
    tj / crowdersoftware / com

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    I don't think we'll share the code. It's part of our app.

  5. #5
    Ext User
    Join Date
    Oct 2007
    Location
    Central England
    Posts
    169
    Vote Rating
    0
    tjcrowder is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    I don't think we'll share the code. It's part of our app.
    Doh! I misread the above. With you now.
    T.J. Crowder
    tj / crowdersoftware / com

  6. #6
    Ext User
    Join Date
    Oct 2007
    Posts
    16
    Vote Rating
    0
    Egor is on a distinguished road

      0  

    Default


    Bump.

    I am also looking for a DateTimeField. Will have a crack at writing my own, but if anyone's already got one to share, that'd be great

  7. #7
    Ext User
    Join Date
    Oct 2007
    Posts
    32
    Vote Rating
    0
    kenshin is on a distinguished road

      0  

    Default


    I also need a DateTimeField.

    I am newbie with extjs and I am not able to write my own.

    Many other js library have that widget and I think that is very useful also for ExtJS users.

    Please, can anyone help us?

Thread Participants: 3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi