1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
    Prorok is on a distinguished road

      0  

    Default problem with mark invalid cell in grid

    problem with mark invalid cell in grid


    Hi All.
    How can i mark invalid cell in grid?

    I have some code:

    Code:
    cell.addCls('invalidClsStyle');
    but, cls style does not restore after store.sync() or when i filtere grid.

    Thanks in advance!

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Here is a great article on coloring grid cells:
    http://skirtlesden.com/articles/styl...tjs-grid-cells

    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    9
    Vote Rating
    1
    Prorok is on a distinguished road

      0  

    Default


    Thanks for the article
    as a solution my problem, i set tdCls in the renderer function.
    At first, When Ajax validation finished i dynamically added new property to the model (_value), and save validation information at the dynamically added properties (_value ).
    then i force render by means of grid.getView().refresh().

    at the render function i have something like that:
    Code:
    renderer: function(value, metadata, record) {
                        if (record._value)
                            metadata.tdCls += 'clsStyle';
                        return value;
                    } },
    Any criticism is welcome.

Thread Participants: 1

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..." hd porno faketaxi