gwt - How to Distinguish Events.OnClick and Events.OnDoubleClick in GXT -


i using ext gwt 2.2.4. in our application binding onclick event on grid , making server call fetch data on of click. display result on dialog box.

the problem is, if user clicks on cell more 1 time, repeated data on same dialog box. have put "getliststore().removeall()" statement clear model , re-populate show fresh data in dialog box.

ps. have tried binding events.ondoubleclick event well, doesn't solve problem because double click calls "click - click" 2 times.

would appreciate help. have been searching forum solution, there similar posts didn't not find solution.

here code:

 grid.addlistener(events.onclick, new listener<gridevent<modeldata>>() {         public void handleevent(gridevent<modeldata> be) {             performaction(be);        }   });    private void performaction (gridevent<modeldata> be) {             appevent event = new appevent(events.onclick);             dispatcher.dispatch(event);   } 


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -