Results 1 to 3 of 3

Thread: [SOLVED] Get the row container in a grid- change dirty row background

  1. #1

    Question [SOLVED] Get the row container in a grid- change dirty row background

    Hey..

    I am working with an editor grid, and wanted to highlight a row if it has been edited. I saw that this can be done by defining the "x-grid3-dirty-row" class, but I wanted to have a colour transition.

    So I wrote a small js that does that to the background of a provided element (say div), and planned to use it on the row when the "afteredit" event occurs.

    My problem: how do I get to the div that holds the row. I see that the object passed to the handler does have the row/col index, but I don't see if that can be used to obtain my div. (By the way, the actual div does not have an id).

    Any input is appreciated,
    i.b.
    Last edited by ibaniski; 6 Feb 2008 at 7:17 AM. Reason: added more info

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Use:

    Code:
    gridPanel.getView().getCell(row, col)

  3. #3

    Default

    Thanks for the quick response. That really helped.

Posting Permissions

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