1. #1
    Ext User dotnetCarpenter's Avatar
    Join Date
    Mar 2007
    Location
    Copenhagen, Denmark
    Posts
    271
    Vote Rating
    0
    dotnetCarpenter is on a distinguished road

      0  

    Default DateField minValue depending on other DateField

    DateField minValue depending on other DateField


    Hi!

    I think I've seen this somewhere in this forum but I can't find it.

    How do I set the minValue of a DateField to the same date as selected/typed in another DateField? It looks to me like I have to set this value at development time. Is it possible to set it at runtime or is there another work around?

    Regards, Jon.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    minValue is a config property and it becomes a public property of the object - you should be able to just set it at runtime.

  3. #3
    Ext User dotnetCarpenter's Avatar
    Join Date
    Mar 2007
    Location
    Copenhagen, Denmark
    Posts
    271
    Vote Rating
    0
    dotnetCarpenter is on a distinguished road

      0  

    Default


    Thanks - I'll give it a try.

  4. #4
    Ext User crxtech's Avatar
    Join Date
    Nov 2007
    Location
    Baltimore, MD
    Posts
    87
    Vote Rating
    0
    crxtech is on a distinguished road

      0  

    Default


    Where you able to get this to work? I'm trying to do the same thing, but with no luck so far.

    Code:
    {
                    columnWidth:.20,
                    layout: 'form',
                    border:false,
                    items: [{
                        xtype:'datefield',
                        fieldLabel: 'Start Date',
    			id: 'Project_SDate',
                        name: 'Project_SDate',
                        anchor:'77%',
    			allowBlank:false//,
    			//maxValue:document.getElementById('Project_EDate').value
                    }]
    			},{
                    columnWidth:.20,
                    layout: 'form',
                    border:false,
                    items: [{
                        xtype:'datefield',
                        fieldLabel: 'End Date',
    			id: 'Project_EDate',
                        name: 'Project_EDate',
                        anchor:'77%',
    			allowBlank:false,
    			minValue:document.getElementById('Project_SDate').value
                    }

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      1  

    Default


    That won't work b/c the dom elements don't exist at the time the config is created. The container has to be rendered in order access the dom.

Thread Participants: 2

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