Results 1 to 4 of 4

Thread: colorize selected rows

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2012
    Posts
    21
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    You can add a CSS class to a selected row.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    584
    Vote Rating
    392
      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
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •