-
3 Mar 2011 5:47 PM #1
[FNR] GridView not showing dirty cells when using dataIndex in ColumnConfig
[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; }
-
13 Jul 2011 2:40 AM #2
Fixed in SVN as of revision 2412
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Remove dirty triangle for specific cells
By KRAN in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 23 Dec 2008, 2:57 PM -
Remove dirty triangle for specific cells
By KRAN in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 21 Mar 2008, 3:26 AM -
Grid Locked Dirty Cells CSS Bug
By CableDawg in forum Ext 1.x: BugsReplies: 0Last Post: 4 May 2007, 12:54 PM -
Dirty cells in striped rows
By reawilliams in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 2 Apr 2007, 11:04 AM


Reply With Quote