1. #1
    Sencha User olivierpons's Avatar
    Join Date
    Dec 2009
    Location
    Aix en Provence,France
    Posts
    116
    Answers
    6
    Vote Rating
    1
    olivierpons is on a distinguished road

      0  

    Question Answered: DataGrid and Cell rendering css problem

    Answered: DataGrid and Cell rendering css problem


    After reading this article, I've managed to change rendering.
    I'm calling an internal function:

    renderer: this.onRenderCell
    And this function is like this:

    onRenderCell: function(value, metaData, record, rowIndex,
    colIndex, store, view) {
    metaData.css = 'ini-cell-pas-traduit';
    return '«'+value+'»';
    }
    If you read carefully I return '«'+value+'»'; so for each value it is transformed to: '«value»'; . This is a proof that on every single line, it works perfectly. So should it be for the css. But the css is applied one time out of two!! This drives me nuts. Any idea where I should take a look?

    Capture.jpg

  2. For your information, here's the solution (unfortunately, I've got the answer from stackoverflow where people are more... or less... well from here anyway).

    Here's the solution: add "!important" keyword:
    Code:
    b.my-ini-style {
      background-color : red !important;
    }
    Hope this helps.

  3. #2
    Sencha User olivierpons's Avatar
    Join Date
    Dec 2009
    Location
    Aix en Provence,France
    Posts
    116
    Answers
    6
    Vote Rating
    1
    olivierpons is on a distinguished road

      0  

    Default


    For your information, here's the solution (unfortunately, I've got the answer from stackoverflow where people are more... or less... well from here anyway).

    Here's the solution: add "!important" keyword:
    Code:
    b.my-ini-style {
      background-color : red !important;
    }
    Hope this helps.

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar