Skip to content

Commit

Permalink
Disabled multiselect on treeGrid in DeviceTabPackagesInstalled class
Browse files Browse the repository at this point in the history
Signed-off-by: ct-ajovanovic <aleksandra.jovanovic@comtrade.com>
  • Loading branch information
ct-ajovanovic authored and Coduz committed Dec 21, 2018
1 parent e333e67 commit e4bc355
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@
import org.eclipse.kapua.app.console.module.device.shared.model.GwtDevice;

import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.Style.SelectionMode;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.store.TreeStore;
Expand Down Expand Up @@ -89,6 +90,7 @@ protected void onRender(Element parent, int index) {
ColumnModel cm = new ColumnModel(Arrays.asList(name, version));

treeGrid = new TreeGrid<ModelData>(treeStore, cm);
treeGrid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
treeGrid.setBorders(false);
treeGrid.setLoadMask(true);
treeGrid.setAutoExpandColumn("name");
Expand Down

0 comments on commit e4bc355

Please sign in to comment.