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
    9,007
    Vote Rating
    459
    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