gwt grid dont work with mouse
I have a grid like this:
this.mygrid = new Grid<person>(this.Store, this.mygridcolummodel);
this.mygrid .getView().setAutoExpandColumn(docColumn);
this.mygrid .getView().setStripeRows(true);
this.mygrid .getView().setColumnLines(true);
this.mygrid .getView().setSortingEnabled(true);
public void onResultresearchRowDoubleClick(RowDoubleClickEvent event) {
person PSelected = (person)
event.getSource().getSelectionModel().getSelectedItem();
getPresenter().openperson(PSelected.getID());
}
With this, I get my grid exacly how I want it with the doubleclick working
exacly how it's supposed to.
My problem is that I can only select 1 row with my mouse, and it stay
locked to that row and if I double click on any other row, it open the row
that I selected first. I cant change row with the mouse, but strangely, I
can with the keyboard arrows(up and down). Do any of you know what I dont
get?
No comments:
Post a Comment