View Full Version : Dirty Flag set when Rowactions Icon Changes in Editor Grid

18 Jan 2009, 10:56 PM
I had a problem of the dirty flag being set in the Editor Grid when one of the Rowactions Plugin (http://extjs.com/forum/showthread.php?t=29961) icons changed.
Found this to work after reading through a lot of the forum. if there is a better way please let me know.

This code would set the dirty flag

// dummy action event handler
action:function(grid, record, action, row, col) {
//changes the icons when clicked
switch (action) {
case 'icon-plus': record.set('action1','icon-minus'); break;
case 'icon-minus': record.set('action1','icon-plus'); break;

Placing this code in removes it for column 5

<style type="text/css">
.x-grid3-td-5 {background-image:none!important;} <!-- remove the dirty flag from the icons -->

19 Jan 2009, 12:29 AM
That would be the preferred way.

Another method would be:

record.data['action1'] = 'icon-minus';