1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    0
    aschaeffer is on a distinguished road

      0  

    Default Unanswered: FileUploadField : Button only

    Unanswered: FileUploadField : Button only


    Hi there,

    I want to display a fileuploadfield in a form, but I would like to display only the button. I've read that it should be possible (al least in ext-js, i've found something here : http://dev.sencha.com/deploy/ext-4.0...le-upload.html).

    I tried to find something here or somewhere else, without success.

    Thanks in advance for your help.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,910
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Please review the following:

    Code:
        Ext.create('Ext.form.field.File', {
            renderTo: 'fi-button',
            buttonOnly: true,
            hideLabel: true,
            listeners: {
                'change': function(fb, v){
                    var el = Ext.get('fi-button-msg');
                    el.update('<b>Selected:</b> '+v);
                    if(!el.isVisible()){
                        el.slideIn('t', {
                            duration: 200,
                            easing: 'easeIn',
                            listeners: {
                                afteranimate: function() {
                                    el.highlight();
                                    el.setWidth(null);
                                }
                            }
                        });
                    }else{
                        el.highlight();
                    }
                }
            }
        });
    Scott.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    0
    aschaeffer is on a distinguished road

      0  

    Default


    First, thanks for your answer, but unfornately, this doesn't help me...

    I'm sorry, my previous post might have been a little confusing because I mentioned a link about EXT JS 4. But I'm looking for a way to do it in GXT 2.x.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,910
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    I have moved your post the the GXT forums.

    Scott.

  5. #5
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    139
    Answers
    2
    Vote Rating
    1
    PhiLho is on a distinguished road

      0  

    Default


    Well, that's still the wrong place, this forum is for GXT 3, not for Ext GWT 2.

    Note: you probably have space constraints, but as a user, I wouldn't appreciate such component as there is no feedback on the selected document (unless you use a tooltip or process it immediately).

  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,910
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Well, that's still the wrong place, this forum is for GXT 3, not for Ext GWT 2.
    well crap .. I have moved it to GWT2 .. sorry about that ...

    Scott.

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..."