Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
refs tsuoanttila#30 : TableSelectionModelConnector - sorting by first…
Browse files Browse the repository at this point in the history
… column doesn't provoke selection/deselection of all rows.
  • Loading branch information
alexandru78 committed Aug 8, 2019
1 parent 5623662 commit cf10743
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
package org.vaadin.teemusa.gridextensions.client.tableselection;

import org.vaadin.teemusa.gridextensions.tableselection.TableSelectionModel;

import com.google.gwt.event.shared.HandlerRegistration;
import com.vaadin.client.ServerConnector;
import com.vaadin.client.annotations.OnStateChange;
import com.vaadin.client.connectors.grid.MultiSelectionModelConnector;
import com.vaadin.client.renderers.Renderer;
import com.vaadin.client.widget.grid.events.BodyClickHandler;
import com.vaadin.client.widgets.Grid;
import com.vaadin.shared.Range;
import com.vaadin.shared.ui.Connect;

import elemental.json.JsonObject;
import org.vaadin.teemusa.gridextensions.tableselection.TableSelectionModel;

@Connect(TableSelectionModel.class)
public class TableSelectionModelConnector extends MultiSelectionModelConnector {
Expand All @@ -29,10 +26,8 @@ public Renderer<Boolean> getRenderer() {
private HandlerRegistration clickHandler;

@Override
protected void initSelectionModel() {
super.initSelectionModel();

getGrid().setSelectionModel(new CustomSelectionModel());
protected MultiSelectionModel createSelectionModel() {
return new CustomSelectionModel();
}

@Override
Expand Down

0 comments on commit cf10743

Please sign in to comment.