[CLOSED] GridPanel RowWrap and StripeRows

  1. #1

    [CLOSED] GridPanel RowWrap and StripeRows

    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.
    Attached Thumbnails Click image for larger version. 

Name:	RowExpander.png 
Views:	178 
Size:	33.4 KB 
ID:	13111  
    Last edited by Daniil; Jul 08, 2014 at 5:23 AM. Reason: [CLOSED]
  2. #2
    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>
  3. #3
    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
  4. #4
    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.

Posting Permissions