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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    You can add a CSS class to a selected row.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    391
      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
  •