DHTMLXGrid events

Hi,



I am using the grid control, and managing the gird save status by serializing XML and uploading it.

This works fine.

I have “Save” and “Load” buttons.

When the user makes a change I want to enable the “Save” button,



I see that I can

grid.attachEvent(“OnEditCell”,enableSaveButton)



Is there an event that I can attach to that shows the grid has been modified in any way, not just cell editing.



something like

grid.attachEvent(“OnChange”,enableSaveButton)



or do i have to attach to all the relevant events individually ?





AC



>>the grid has been modified in any way, not just cell editing

If you need to handle only change of cell value ( by any method ) you can use onCellChanged event

    grid.attachEvent("onCellChanged ",enableSaveButton)


please beware that event react on ANY operation which change cell value, including initial row adding from XML/script. So probably for your goal it need to be attached only after initial data loading.