-
15 Feb 2008 4:48 AM #1
Ext.ux.grid.MultiCellSelectionModel
Ext.ux.grid.MultiCellSelectionModel
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:
If someone is interested, I can explain the few config options...Code: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() });
Feedback is welcome
Demo: http://codehaus.org/~ziegfried/multiselectdemo/
Cheers, sigi
-
15 Feb 2008 5:17 AM #2
Nice!
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
15 Feb 2008 7:09 AM #3
Very nice!

Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
15 Feb 2008 3:21 PM #4
Cool. Would be very nice if you could ctrl-c and paste these comma delimited "cells"!
-
17 Feb 2008 7:14 AM #5
Very nice and useful. Thanks for sharing.
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
1 May 2008 9:03 AM #6
What can I say... this works perfectly Zigi

Thanks!!Noah
Senior Web Developer
NBA.com
-
6 Aug 2008 1:59 AM #7
Hi,
Thanks for this nice extension but there are somes bugs with the 2.2 version of ExtJS:
- once we click on a cell, all cells become blue on mouseover,
- we cannot have multiples cells selected.
By any chance, do you plan to fix them for this version ?
-
12 Aug 2008 5:50 AM #8
Hi,
well, wasn't hard to fix. I've done it on my demo. You can try it for your self: http://codehaus.org/~ziegfried/multi.../index.html?v2
I've quick-tested it in FF3, Safari and IE7.
You can download it here: http://codehaus.org/~ziegfried/multi...ectionModel.js
Cheers, Sigi
-
12 Aug 2008 8:54 AM #9
Hi,
Thanks a lot, you saved my life :-)
It works fine with IE6, IE7, FireFox 2
Thanks again.
-
20 Aug 2008 5:40 AM #10
selectAll
selectAll
Cool...I like it a lot. Any plans for a selectAll()..or selectRow() ?


Reply With Quote
