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 -

console screenshot

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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -