1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    22
    Vote Rating
    0
    patniemeyer is on a distinguished road

      0  

    Default How to set value of TimeField?

    How to set value of TimeField?


    I have been struggling for hours trying to figure out how to select or set the value of a TimeField (combo box of Time values)...

    I have tried setValue( Time ) which sets the display but not the actual value... it just returns null after that.
    I have tried select ( Time ) but it does nothing.
    I have tried findModel( Time ) followed by select on what it found (which is not null)... does nothing.

    I am also wondering why there is no scrolling in the dropdown... I have to push arrow down to move to the next item... and I cannot hold down arrow down - it does not repeat for some reason - meaning that to get through 24 hours of 15 min. intervals I'd have to hit down 96 times...

    I am on GXT 2.2 but had the same problems under 2.1.


    thanks
    Pat

  2. #2
    Ext User
    Join Date
    Sep 2008
    Posts
    22
    Vote Rating
    0
    patniemeyer is on a distinguished road

      0  

    Default


    After much hair pulling out I found that by using findModel and then both selecting and setting the value returned by that it now works... At least, it retains the value. I still don't know how useful it is if there is no way to scroll through the large list of values.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I am also wondering why there is no scrolling in the dropdown... I have to push arrow down to move to the next item... and I cannot hold down arrow down - it does not repeat for some reason - meaning that to get through 24 hours of 15 min. intervals I'd have to hit down 96 times...
    Are you sure you also updated your resources (css files) to GXT 2.2?

  4. #4
    Ext User
    Join Date
    Sep 2008
    Posts
    22
    Vote Rating
    0
    patniemeyer is on a distinguished road

      0  

    Default


    I believe that I have all of the relevant gxt 2.2 resources in my path... at least the CSS and images. Is there something you are thinking might be missing or out of date that could be causing the drop down not to work properly?

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    An old css file can course this.

  6. #6
    Ext User
    Join Date
    Dec 2010
    Posts
    1
    Vote Rating
    0
    adamwilmer is on a distinguished road

      0  

    Default


    I had the same issues and setting:

    timeField.setTriggerAction(ComboBox.TriggerAction.ALL);

    got the time scrollbar working again

  7. #7
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    That should not fix the "non scrolling" part. It would fix that only one item is actually shown.

Similar Threads

  1. [FNR-27] TimeField Error when set time 23:45
    By zdarsky in forum Ext GWT: Bugs (2.x)
    Replies: 4
    Last Post: 16 Mar 2010, 5:29 AM
  2. timefield - Set minValue after rendering
    By jonathanza in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 14 Nov 2008, 12:39 AM
  3. Using TimeField to set Time on java.util.date
    By firejack in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 4 Nov 2008, 1:19 PM
  4. How to set a timefield minValue dynamicly?
    By Dumbledore in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 3 Sep 2008, 10:53 PM

Thread Participants: 2

Tags for this Thread

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