PDA

View Full Version : [CLOSED] GridPanel RowWrap and StripeRows



snow_cap
Jun 28, 2014, 11:07 AM
Hello,
we use Ext RowWrap Feature with GridPanel, but it cause GridView StripeRows option to be disabled, so how to keep GridView StripeRows with RowWrap? (RowExpander.png show our gridPanel)
Thank you.

Daniil
Jun 30, 2014, 11:38 AM
Hi @snow_cap,

Please try to add this into the page's <head>.

<style>
.x-grid-row-alt .x-grid-cell,
.x-grid-row-alt .x-grid-rowwrap-div {
background-color: #fafafa !important;
}
</style>

snow_cap
Jul 01, 2014, 9:10 AM
Hello,
my problem is that i want to color the rowBody (or RwoWrap) as well, in Ext 1.x we used to use GroupingView with

<GetRowClass Handler="GetRowClass(rowParams,record)" />

function GetRowClass(rowParams, record)
{
var template = '<p style="color:{0};">{1}</p>';
var color = "#2f3533";
var st = record.get("PURPOSE");
var subject = '';
if (record.data.SUBJECT != null)
{
subject = record.data.SUBJECT;
}
rowParams.body = String.format(template, color, subject);
return 'x-grid3-row-expanded';
}
And StripRows worked perfectly,
but In Ext 2.x we lost this ability.
Can we achieve the same?

Thank you

Daniil
Jul 01, 2014, 10:27 AM
Yes, unfortunately, migrating from Ext.NET v1 to v2 is a tough process.

I think you can apply the background-color on a rowbody as well. You can inspect HTML elements and determine what an additional CSS rule is required.