gwt - GXT3 - Editable Grid: display the row to edit in a popup -
gxt3 - grid: adding column button modify row in editable grid
in example line editable automatically when line selected. http://www.sencha.com/examples/#exam...oweditablegrid
i want line changed when click on edit button appear in popup.
textbuttoncell button = new textbuttoncell(); button.addselecthandler(new selecthandler() { @override public void onselect(selectevent event) { context c = event.getcontext(); info.display("event", "call popup here."); } }); namecolumn.setcell(button);
there way this?
thanks in advance help.
first of have yo create column textboxcell
may created. have disable default onclick
editable behavior of grid.
for per sencha example's file roweditinggridexample.java
can override onclick
event , prevent fire default code.
public class roweditinggridexample extends abstractgrideditingexample { @override protected gridediting<plant> creategridediting(grid<plant> editablegrid) { return new gridrowediting<plant>(editablegrid){ @override protected void onclick(clickevent event) { } }; } }
and when click on textboxcell click handler can start editing manually.
textbuttoncell button = new textbuttoncell(); button.addselecthandler(new selecthandler() { @override public void onselect(selectevent event) { context c = event.getcontext(); //here can pass new gridcell proper cell index , row index. gridcell cell = new gridcell(getrowindex(), getcellindex()); editing.starteditng(cell); } }); namecolumn.setcell(button);
if want appear row editor in separate popup have design manually.
Comments
Post a Comment