View Full Version : [FNR] [1.2.4] Clicking one of multiple items selected in grid doesnt unselect others

8 May 2009, 10:45 AM
NOTE: Just realized this was posted in 2.0 not 1.x. Can a mod move it (unless someone can confirm this also happens in 2.0)?

package com.mycompany.prototype.gwtprototype.client;

import java.util.ArrayList;

import com.extjs.gxt.ui.client.data.BaseModelData;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

public class GwtPrototype implements EntryPoint {

public void onModuleLoad() {
Viewport v = new Viewport();
ListStore<BaseModelData> ls = new ListStore<BaseModelData>();
for (int i = 0;i<10;i++)
BaseModelData bmd = new BaseModelData();
bmd.set("name", "Name " + i);
ArrayList<ColumnConfig> cc = new ArrayList<ColumnConfig>();
ColumnConfig name = new ColumnConfig("name", "Name", 200);
ColumnModel cm = new ColumnModel(cc);
Grid<BaseModelData> g = new Grid<BaseModelData>(ls, cm);


Run the code, click name 0, shift click name 9. Now click any item in the grid. Following UI standards, this should unselect all other items in a grid. Instead you get in a state where a user is not able to unselect any items.

8 May 2009, 11:01 AM
Fixed in SVN.