1. #1
    Ext JS Premium Member
    Join Date
    Feb 2012
    Posts
    21
    Vote Rating
    0
    dascoco is on a distinguished road

      0  

    Default Unanswered: colorize selected rows

    Unanswered: colorize selected rows


    Hey,

    I have a Grid with a SelectionModel, which is limited of 2 selections. How can I colorize the selected rows? every selected row in a other color?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,581
    Vote Rating
    433
    Answers
    3100
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    You can add a CSS class to a selected row.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,078
    Vote Rating
    112
    Answers
    453
    skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold

      0  

    Default


    Do you want both selected rows to be the same color as each other or in two different colors?

  4. #4
    Ext JS Premium Member
    Join Date
    Feb 2012
    Posts
    21
    Vote Rating
    0
    dascoco is on a distinguished road

      0  

    Default


    And than I must refresh the grid?
    Code:
    grid.getView().refresh();
    @skirtle: in two different colors