Changing a row's text-decoration in a grid

  1. #1

    Changing a row's text-decoration in a grid

    Hi,

    Currently I am able to use the GetRowClass as a renderer to change the rows background color and font but I am not able to apply "text-decoration:line-through". I use Firebug but still can't see what is canceling out the "text-decoration" style.

    Here is the sample code:

    .code-inactive-row
    {
     background-color: #DDDDDD;
        text-decoration: none;
        text-decoration: line-through;
        color: Green;
    }
    function inactiveListItems(record, index) {
        if (record.data.IsActive == false) {
            return 'code-inactive-row';
        }
    }
    <View>
        <ext:GridView ID="ViewWindowBusinessCodePicker">
            <GetRowClass Fn="inactiveListItems" />
        </ext:GridView>
    </View>
  2. #2
    This works if you simply add 'tr' to the class style:

    /*CSS*/
    tr.inactive
    {
    color: Gray;
    text-decoration: line-through;
    }
    
    /*JS*/
    var applyStyle = function(record, index){
    if (record.data.Active == false){
    return 'inactive';
    }
    } /*Markup*/ <View> ... <GetRowClass Fn="applyStyle" /> </View>
    Quote Originally Posted by Juls View Post
    Hi,

    Currently I am able to use the GetRowClass as a renderer to change the rows background color and font but I am not able to apply "text-decoration:line-through". I use Firebug but still can't see what is canceling out the "text-decoration" style.

    Here is the sample code:

    .code-inactive-row
    {
     background-color: #DDDDDD;
        text-decoration: none;
        text-decoration: line-through;
        color: Green;
    }
    function inactiveListItems(record, index) {
        if (record.data.IsActive == false) {
            return 'code-inactive-row';
        }
    }
    <View>
        <ext:GridView ID="ViewWindowBusinessCodePicker">
            <GetRowClass Fn="inactiveListItems" />
        </ext:GridView>
    </View>

Similar Threads

  1. Changing Grid Panel Data Store
    By anand in forum 1.x Help
    Replies: 4
    Last Post: May 14, 2011, 8:07 PM
  2. [CLOSED] Changing Textfield's text color onchange
    By ogokgol in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 22, 2010, 10:58 AM
  3. Replies: 11
    Last Post: Mar 03, 2010, 5:46 AM
  4. [CLOSED] Changing loading mask text during ajax event
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 22, 2010, 10:20 AM
  5. [CLOSED] Changing Button text color
    By HOWARDJ in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 15, 2009, 10:23 AM

Posting Permissions