-
9 Apr 2011 2:32 PM #1
[FIXED-EXTJSIV-206] Grid columns miss a default configuration
[FIXED-EXTJSIV-206] Grid columns miss a default configuration
In Ext3 whe had some general properties for the columns eg for disable move, resize, sort etc.
Now these properties are moved to columns configuration, which is great because there is more flexibility.
But if you want to disable a feature for all columns, you have to set the property for each column.
It would be great to have a default array for all columns to apply configuration for all columns, eg
Code:columnsDefaults: { draggable: false }vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
10 Apr 2011 1:47 AM #2
-
11 Apr 2011 4:36 PM #3
A coming change will support you providing your own HeaderContainer.
Because HeaderContainer is a standard container you can use the defaults configuration. Attaching this thread to that ticket.Aaron Conran
@aconran
Sencha Architect Development Team
-
13 Apr 2011 5:40 PM #4
In the next build you can pass in an instance of a HeaderContainer in the headers configuration.
You can use the defaults configuration of a standard Container.Aaron Conran
@aconran
Sencha Architect Development Team
-
14 Apr 2011 5:16 AM #5
Also "actioncolumn" takes by default sortable: true, draggable: true, fixed: false, i think that this have to be false, false, true by default
-
26 Apr 2011 7:34 AM #6
what's happened here? HeaderContainer is private now, not in the docs. No example for such config is given, and it looks like unsupported.
Any statement, maybe an example for such default config?vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
-
2 May 2011 1:40 AM #7
+1 !
Where is headerContainer? How do I attach a headerclick listener?
-
2 May 2011 1:59 AM #8
Hi,
I figured out myself looking at the source code, here's an example:
The documentation doesn't mention the possibility of passing an Ext.grid.header.Container instance instead of the columns array.Code:var grid = Ext.create('Ext.grid.Panel', { stripeRows : true, enableColumnResize : false, columns : Ext.create('Ext.grid.header.Container',{ items : cols, // The usual array of column definition objects. sortable : false, listeners : { headerclick : function(ct,column, e, t) { console.log('headerclick', column) } } }) })
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-EXTJSIV-876][B2] Grids can allow all columns to be hidden.
By WixSL in forum Ext:BugsReplies: 2Last Post: 18 Apr 2011, 2:14 PM -
[FIXED-EXTJSIV-866][B2] Width and height in animation should default to px
By sebsei in forum Ext:BugsReplies: 1Last Post: 10 Apr 2011, 12:24 PM -
[FIXED-EXTJSIV-628] Sprite miss remove and destructor
By steffenk in forum Ext:BugsReplies: 1Last Post: 4 Apr 2011, 3:26 PM -
Grid columns configuration to unhidden if 2 columns remain
By kanny in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 12 Jul 2010, 11:48 PM -
[2.??] Editable Grid: Default restoration overriding the configuration for hidden
By orla in forum Ext 2.x: BugsReplies: 1Last Post: 24 Aug 2009, 12:22 AM


Reply With Quote