Results 1 to 2 of 2

Thread: [FNR] GridView not showing dirty cells when using dataIndex in ColumnConfig

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Dec 2008
    Posts
    40
    Vote Rating
    0
      0  

    Default [FNR] GridView not showing dirty cells when using dataIndex in ColumnConfig

    This issue is there in all versions of GXT.

    The below code from GridView should use c.name instead of c.id as the record (r) will not contain data with key c.id when ColumnConfig.setDataIndex() is used.

    Code:
            if (showInvalidCells && r != null && !r.isValid(c.id)) {
              buf.append(" x-grid3-invalid-cell");
            }
            if (showDirtyCells && r != null && r.getChanges().containsKey(c.id)) {
              buf.append(" x-grid3-dirty-cell");
            }
    Code:
      protected List<ColumnData> getColumnData() {
        int colCount = cm.getColumnCount();
        List<ColumnData> cs = new ArrayList<ColumnData>();
        for (int i = 0; i < colCount; i++) {
          String name = cm.getDataIndex(i);
          ColumnData data = new ColumnData();
          data.name = name == null ? cm.getColumnId(i) : name;
          data.renderer = cm.getRenderer(i);
          data.id = cm.getColumnId(i);
          data.style = getColumnStyle(i, false);
          cs.add(data);
        }
        return cs;
      }

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Fixed in SVN as of revision 2412

Similar Threads

  1. Remove dirty triangle for specific cells
    By KRAN in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 23 Dec 2008, 2:57 PM
  2. Remove dirty triangle for specific cells
    By KRAN in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 21 Mar 2008, 3:26 AM
  3. Grid Locked Dirty Cells CSS Bug
    By CableDawg in forum Ext 1.x: Bugs
    Replies: 0
    Last Post: 4 May 2007, 12:54 PM
  4. Dirty cells in striped rows
    By reawilliams in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 2 Apr 2007, 11:04 AM

Posting Permissions

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