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,966
    Vote Rating
    130
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar