1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    3
    Vote Rating
    0
    zinzin is on a distinguished road

      0  

    Default How to add a button in an editable grid

    How to add a button in an editable grid


    Hi all,
    i want to add a button at the last column on each row of an editable grid using following code:

    final Button buttonInGrid = new Button(i18n.resetButton(),
    new SelectionListener<ButtonEvent>() {
    public void componentSelected(ButtonEvent ce) {
    GWT.log("buttonInGrid is clicked...", null);
    }
    });
    final AdapterField adaptField = new AdapterField(buttonInGrid);
    CellEditor editorBtn = new CellEditor(adaptField) {
    public Object preProcessValue(Object value) {
    return ((Button)adaptField.getWidget());
    }

    public Object postProcessValue(Object value) {
    return ((Button)adaptField.getWidget());
    }
    };
    But the buttons only appear, when I click on its cell. I would like to make all buttons appear at the first time when the editable grid is loaded. How can I achieve it?
    Thanks in advanced!

  2. #2
    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


    You set tha button as an editor. They only appear of you want to edit that cell.

    The next GXT2 release (M2) will ship with a grid widgetrenderer

Thread Participants: 1

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