zigi
15 Feb 2008, 4:48 AM
Hi guys,
I've done an initial implementation of an SelectionModel which allows to perform Excel-like Multi-Cell Selection. It certainly has serveral rough edges and bugs and is neither performance optimized nor cross-browser tested (only ff2 atm).
I thought it might be usefull for someone anyway.
Usage:
var grid = new Ext.grid.GridPanel({
store: store,
columns: [
{id:'company',header: "Company", width: 160, sortable: true, dataIndex: 'company'},
{header: "Price", width: 75, sortable: true, renderer: 'usMoney', dataIndex: 'price'},
{header: "Change", width: 75, sortable: true, renderer: change, dataIndex: 'change'},
{header: "% Change", width: 75, sortable: true, renderer: pctChange, dataIndex: 'pctChange'},
{header: "Last Updated", width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
],
height:350,
width:600,
title:'Array Grid',
sm: new Ext.ux.grid.MultiCellSelectionModel()
});
If someone is interested, I can explain the few config options...
Feedback is welcome ;)
Demo: http://codehaus.org/~ziegfried/multiselectdemo/
Cheers, sigi
I've done an initial implementation of an SelectionModel which allows to perform Excel-like Multi-Cell Selection. It certainly has serveral rough edges and bugs and is neither performance optimized nor cross-browser tested (only ff2 atm).
I thought it might be usefull for someone anyway.
Usage:
var grid = new Ext.grid.GridPanel({
store: store,
columns: [
{id:'company',header: "Company", width: 160, sortable: true, dataIndex: 'company'},
{header: "Price", width: 75, sortable: true, renderer: 'usMoney', dataIndex: 'price'},
{header: "Change", width: 75, sortable: true, renderer: change, dataIndex: 'change'},
{header: "% Change", width: 75, sortable: true, renderer: pctChange, dataIndex: 'pctChange'},
{header: "Last Updated", width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
],
height:350,
width:600,
title:'Array Grid',
sm: new Ext.ux.grid.MultiCellSelectionModel()
});
If someone is interested, I can explain the few config options...
Feedback is welcome ;)
Demo: http://codehaus.org/~ziegfried/multiselectdemo/
Cheers, sigi