gwt - Double Click event for DataGrid -


i added double click event datagrid, doesn't work correctly. code handles single click, not handle double click.

please help.

private datagrid<contract> table = new datagrid<contract>(); table.addcellpreviewhandler(new handler<contract>() {   @override   public void oncellpreview(final cellpreviewevent<contract> event) {     if (browserevents.dblclick.equals(event.getnativeevent().gettype())) {       //it doesn't handle       window.alert("tro-lo-lo");     }     if (browserevents.click.equals(event.getnativeevent().gettype())) {       //it handles       window.alert("tru-la-la");             }   } }); 

datagrid has many things in common celltable. solutions this question must work too:

  • using cellpreviewhandler count time between 2 clicks
  • or can add doubleclickhandler using adddomhandler method

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -