line to complete a single color

  1. #1

    line to complete a single color

    through css, get color, but only to the columns. question for the entire row If a column is equal to a value, put one color the entire row.

    thanks, I'm using version 0.8.2
  2. #2
    Give an example of what I do.

    <script type="text/C">
     var template = '<span style="color:{0};">{1}</span>';
    var changeprt = function (value) {
            if ( value == 'A'){
                return String.format(template, 'red', value);
            }
        }
    </javascript>
    
    <ext:GridPanel ID="gvgridpanel1" runat="server" StoreID="store1" AutoShow="True"
                Border="false" Header="false" Shadow="Frame"
                <ColumnModel ID="ColumnModel1" runat="server">
                    <Columns>
                        <ext:RowNumbererColumn />
                        <ext:Column ColumnID="Tipo" Header="Código" DataIndex="IDRecuperacion" Align="Center" Width="100" >
     <Renderer Fn="changeprt "/>
    </ext:Column>
    
                        <ext:Column ColumnID="Fecha" Header="Fecha" DataIndex="Fecha" Width="75" Align="Center">
                            <Renderer Fn="Ext.util.Format.dateRenderer('d/m/Y')" />
                        </ext:Column>
                        <ext:Column ColumnID="xdescripcion_l" Header="Descripción" DataIndex="xdescripcion_l"
                            Width="340">
                        </ext:Column>
                         </Columns>
                </ColumnModel>                      
            </ext:GridPanel>
    well, just makes my column color, and what I want is to put the entire row of that color.
    Last edited by geoffrey.mcgill; Jun 20, 2011 at 4:10 AM. Reason: please use [CODE] tags

Similar Threads

  1. Ext JS License and Sencha Complete
    By x1000 in forum Licensing
    Replies: 2
    Last Post: Aug 03, 2016, 7:56 AM
  2. Changing the line color of GridPanel
    By Dig2010 in forum 1.x Help
    Replies: 3
    Last Post: Dec 02, 2010, 7:14 PM
  3. Control render complete query
    By seanwo in forum 1.x Help
    Replies: 2
    Last Post: Aug 06, 2009, 9:29 AM
  4. Window datefield not expand complete
    By AndresGonzalez09 in forum 1.x Help
    Replies: 4
    Last Post: May 20, 2009, 11:21 AM

Posting Permissions