i adding new record in grid below
var newrow = ext.create(gridmodel); roweditplugin.canceledit(); gridstore.insert(0, newrow); reportgrid.getview().refresh(); reportgrid.getview().getselectionmodel().select(0); //roweditplugin.startedit(0); roweditplugin.starteditbyposition({ row: newrow, column: 0 });
i want newly added record shown dirty, user should know row added newly i.e. red marks on top of each column.
you can supply method viewconfig
of grid, called getrowclass
. method allow customise css class row.
you can tell if record newly inserted or not using model#phantom
property
and, finally, can modify css application using sass/fashion change appearance of newly added rows.
Comments
Post a Comment