gwt - EditorExit event handler called recursively -
the below portion of code caused recursive call on oneditorexit method. if remove setdata call, no recursion occur. can workaround?
mygrid.addeditorexithandler(new editorexithandler() { public void oneditorexit(editorexitevent event) { gwt.log("hello"); mygrid.setdata(new listgridrecord()); } });
now check console output -
it won't work because each time call setdata()
editor fire editorexit
event in infinite loop (not recursively). way, calling setdata()
in way doing replace records in listgrid
1 new empty record. seems disconcerting user experience.
it looks want create , start editing new record when tab out of last one. in order in listgrid
, use:
grid.setlistendeditaction(rowendeditaction.next);
that's need in order working.
Comments
Post a Comment