PDA

View Full Version : [CLOSED] [4.2.0] A field's convert breaks a grouping grid



Daniil
9 Apr 2013, 9:28 PM
REQUIRED INFORMATION

Ext version tested:

Ext 4.2.0

Browser versions tested against:

Chrome
IE9

DOCTYPE tested against:

<!DOCTYPE html>

Description:

A field's convert breaks a grouping grid. It executes a convert handler on collapsing and a groupField gets changed.

Steps to reproduce the problem:

Collapse any group

The result that was expected:

A group collapses

The result that occurs instead:

Grouping is breaking

Test Case:


<!DOCTYPE html>
<html>
<head>
<title>A field's convert breaks a grouping grid</title>

<link rel="stylesheet" href="../resources/css/ext-all.css" />

<script src="../ext-all-debug.js"></script>

<script>
Ext.onReady(function () {
Ext.create("Ext.grid.Panel", {
renderTo: Ext.getBody(),
store: {
groupField: "groupId",
fields: [{
name: "test1"
}, {
name: "test2"
}, {
name: "groupId",
convert: function (value, record) {
console.log("_" + value);
return "_" + value;
}
}],
data: [{
test1: "1",
test2: "2",
groupId: "1"
}, {
test1: "4",
test2: "5",
groupId: "1"
}, {
test1: "7",
test2: "8",
groupId: "2"
}]
},
columns: [{
text: "Test1",
dataIndex: "test1"
}, {
text: "Test2",
dataIndex: "test2"
}, {
text: "Group id",
dataIndex: "groupId"
}],
features: [{
ftype: "grouping"
}]
});
});
</script>
</head>
<body>

</body>
</html>

slemmon
10 Apr 2013, 6:07 AM
Thanks for the report! I have opened a bug in our bug tracker.