ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: angelahlp on March 10, 2014, 02:56:48 am
-
I have finally got an add row to work but after the commit, the red triangles do not go away in the field corners. My code is:
$grid.pqGrid("commit", { type: 'add', rows: rows });
I also rollback:
$grid.pqGrid("rollback", { type: 'add' });
The new row stays in the first row of the grid with the red triangles still present...
-
Please refer to this example. New row doesn't have red triangles even before the commit.
http://paramquery.com/pro/demos/editing
-
I have the grid set up so that it allows editing of all cells with an "Accept Changes" button. When a new row is created it has the red triangles... is there a way to get rid of them - remove the class or something?
-
Even though triangles can be removed by css
.pq-grid td.pq-cell-dirty
{
background: none;
}
but I'm still not sure how you ended up with triangles for add new rows. They are not supposed to be there.
Did you check the log of changes with the help of method: getChanges after adding a new row.
A small test case could be useful so that I can look into what's going on.