PDA

View Full Version : [CLOSED] [4.2.0 beta 2] RowBody of a selected row doesn't look selected



Daniil
24 Jan 2013, 1:33 AM
REQUIRED INFORMATION

Ext version tested:

Ext 4.2.0 beta 2

Browser versions tested against:

Chrome
IE9

DOCTYPE tested against:

<!DOCTYPE html>

Description:

RowBody of a selected row doesn't look selected.
It was fixed in 4.1.3, but appeared again in 4.2.


http://www.sencha.com/forum/showthread.php?241045&p=924429&viewfull=1#post924429


Steps to reproduce the problem:

Select any row

The result that was expected:

The row body looks selected

The result that occurs instead:

The row body doesn't look selected

Test Case:


<!DOCTYPE html>
<html>
<head>
<title>RowBody of a selected row doesn't look selected</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: {
fields: [{
name: "test"
}],
autoLoad: true,
proxy: {
data: [
["test1"],
["test2"],
["test3"]
],
type: 'memory',
reader: {
type: "array"
}
}
},
columns: {
items: [{
dataIndex: "test",
text: "Test"
}]
},
features: [{
ftype: "rowbody",
getAdditionalData: function () {
return {
rowBody: '<b>Some row body</b>'
};
}
}]
});
});
</script>
</head>
<body>

</body>
</html>

mitchellsimoens
24 Jan 2013, 7:34 AM
Thanks for the report! I have opened a bug in our bug tracker.

Daniil
2 Apr 2013, 10:17 PM
Using a RowWrap feature in conjunction with a RowBody one appears to help remedy this issue.

Should, really, the RowWrap feature be a private thing?

LeandroC
22 May 2013, 8:13 AM
Daniil Can you post the fix ?
Regards

Daniil
22 May 2013, 8:16 AM
Hi @LeandroC,

If I remember correctly, just adding a "rowwrap" feature helps.


features: [{
ftype: "rowbody",
getAdditionalData: function () {
return {
rowBody: '<b>Some row body</b>'
};
}
}, {
ftype: "rowwrap"
}]

Does it work for you?

LeandroC
22 May 2013, 8:34 AM
Thanks @Daniil

It worked for me!
Regards