PDA

View Full Version : [DUP] [4.2.0.633] Grid grouping by converted field



sunsay
20 Apr 2013, 4:19 AM
REQUIRED INFORMATION

Ext version tested:

Ext 4.2.0.633
Browser versions tested against:

Chrome 26.0.1410.64
Description:

If grid store has a groupField which reffers to a field with convert function the grouping breaks after collapsing a group
Steps to reproduce the problem:

Open examples/grid/group-summary-grid.js
Add this lines of code:


// ...
Ext.define('Task', {
extend: 'Ext.data.Model',
idProperty: 'taskId',
fields: [
// ...
{name: 'due', type: 'date', dateFormat:'m/d/Y'},
{name: 'converted', convert: function(v, record) {
return 'CONVERTED: ' + record.get('project')
}}
]
});
// ...
var store = Ext.create('Ext.data.Store', {
model: 'Task',
data: data,
sorters: {property: 'due', direction: 'ASC'},
groupField: 'converted'
});


The result that was expected:

Usual collapsing/expanding of groups
The result that occurs instead:

Groups dissapear after collapsing
HELPFUL INFORMATION

Screenshot or Video:

attached
Debugging already done:

none
Possible fix:

not provided
Additional CSS used:

only default ext-all.css
Operating System:

Windows 7 x32

slemmon
20 Apr 2013, 11:40 AM
Thank you for the report!
I've added your test case to an open bug in the tracker:
http://www.sencha.com/forum/showthread.php?260888