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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."