Results 1 to 3 of 3

Thread: Color and properties of name column in Property Grid

  1. #1
    Sencha User
    Join Date
    Jun 2018
    Posts
    2
    Vote Rating
    0
      0  

    Default Answered: Color and properties of name column in Property Grid

    I am new to using the property grid and was wondering if there is a way to differentiate the coloring between the name column vs. the value column. Essentially, I'd like the background color of the name column with all of the property keys to be blue, which would make it easier to differentiate between name and corresponding value. I looked at the config property a little, but didn't seem to be able to get the name column to be altered with it.

    Thanks so much in advance!

  2. https://fiddle.sencha.com/#view/editor&fiddle/2ldq

    Use viewConfig > getRowClass, there you return your own class of css which will aply to raw. In you css class you define your styling. But to differ the columns, you need to specify the class which is unique for each columns (x-grid-cell-name and x-grid-cell-value(if you check by inspect element)). css classes are defined in index.html

  3. #2
    Sencha User
    Join Date
    Feb 2017
    Posts
    14
    Answers
    3
    Vote Rating
    1
      0  

    Default

    https://fiddle.sencha.com/#view/editor&fiddle/2ldq

    Use viewConfig > getRowClass, there you return your own class of css which will aply to raw. In you css class you define your styling. But to differ the columns, you need to specify the class which is unique for each columns (x-grid-cell-name and x-grid-cell-value(if you check by inspect element)). css classes are defined in index.html

  4. #3
    Sencha User
    Join Date
    Jun 2018
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Used this solution, worked perfectly, thanks!

Similar Threads

  1. Replies: 5
    Last Post: 24 Jan 2012, 2:32 AM
  2. Property Grid - Make some properties read-only
    By itgrunt in forum Ext 3.x: Help & Discussion
    Replies: 8
    Last Post: 30 Sep 2010, 2:29 AM
  3. Add color to column property grid
    By rkaat in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 14 Sep 2010, 5:22 AM
  4. dynamically adding properties in property grid
    By nokia786 in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 9 Dec 2008, 2:15 AM

Tags for this Thread

Posting Permissions

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