Jan 29, 2014, 2:27 PM
[CLOSED] RowExpander plugin, set expanded row color; add icon to column header
I have a simple grid with alternating row colows. I am using the row expander plugin, and I would like to set the expander color, or the display field it contains, background color to match the row it is associated with.
I am calling a function when the row is expanded:
I am calling a function when the row is expanded:
<Listeners>
<Expand Fn="getOverrideRsn"></Expand>
</Listeners>
and that function has access to the "item" object
function getOverrideRsn(item,record){
item.component.setValue(record.data.override_reason);
item.component.ctCls = getRowClass(record);
}
var getRowClass = function(record){
if (record.index % 2 == 0){
return "even-row";
}
return "odd-row";
};
Is there a way to get to what I need through the "item" object. I cannot find the property I need in fireburg
Last edited by Daniil; Feb 07, 2014 at 6:59 AM.
Reason: [CLOSED]