1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    New York City
    Posts
    109
    Answers
    1
    Vote Rating
    2
    infernoz is on a distinguished road

      0  

    Default Unanswered: Change entire rows color when one or more colums are edited

    Unanswered: Change entire rows color when one or more colums are edited


    Hello,

    I have a grid panel which is in has cell editing (would like to keep cell editing and not switch to row editing). What I would like to do is when one editable cell is changed by a user, the entire row changes its background color. I know that there is the .x-grid-dirty-cell css class but that just affects the one cell being changed, I want the entire row to have its color changed. Possibly different colors depending on the cell being edited.

    Similarly, when a row is added, I'd like that row to have a different color than the default. How can that be done?

    I'm thinking this can be achieved with getSelectionModel() and for loops but that seems very brute force and I'm not sure on what even the for loop should be executed. Any easy ExtJS way of doing this?

    Thanks,

    infernoz

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,581
    Answers
    540
    Vote Rating
    317
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Couldn't you use getRowClass? Check whether the record is dirty and return a CSS class accordingly.

    A similar approach could work for adding a row. It would depend on your specific scenario how exactly to determine a record is new, perhaps the phantom property?

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