/** * Sets the dataIndex for a column. * * @param colIndex the column index * @param dataIndex the data index */ public void setDataIndex(int colIndex, String dataIndex) { ColumnConfig c = getColumn(colIndex); if (c != null) { c.setDataIndex(dataIndex); } }
public CheckBoxSelectionModel() { super(); config = newColumnConfig(); config.setId("checker"); config.setWidth(20); config.setSortable(false); config.setResizable(false); config.setFixed(true); config.setMenuDisabled(true); config.setDataIndex(""); config.setRenderer(new GridCellRenderer<M>() { public String render(M model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<M> store, Grid<M> grid) { config.cellAttr = "rowspan='2'"; return "<div class='x-grid3-row-checker'> </div>"; } }); }