Results 1 to 2 of 2

Thread: Apply background color to selected row..

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    48
    Answers
    1
    Vote Rating
    0
      0  

    Default Unanswered: Apply background color to selected row..

    I want to apply background color to selected row, ".X3-grid-row-selected" this is default css class.
    I dont want use that,please tell me that how can I apply css class to selected row.
    Please provide solution as early as possible.

    Thanking You

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      0  

    Default

    Hi,

    You can use following code:
    you can define a class rowColor and give color accordingly your choice
    Code:
        Ext.fly(yourgrid.getView().getRow(rowindex)).addClass('rowColor');
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Posting Permissions

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