Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chad Challis on Sep 10, 2008 08:38
open dhtmlx forum
Grid events

I'm evaluating the product to see if it will fit my business' needs. I've been testing just a couple of the Grid events. 'onRowSelected' and 'onRowDblClicked' work fine, but 'onCellChanged' does not seem to fire. That one is very important so i can perform a postback to the server and update the database. Is it possible that the alert function will not work in that handler? Here is my code:

mygrid.init();
mygrid.loadXML("SADBGrid.aspx",
function(){
mygrid.attachEvent("onCellChanged",function(){alert("Cell was changed");});
//mygrid.attachEvent("onRowSelect",doOnRowSelected);
//mygrid.attachEvent("onRowDblClicked",doOnRowDblClicked);
});
Answer posted by Support on Sep 10, 2008 09:21
The code is correct, but onCellChanged event exist only in pro version of grid. 

http://dhtmlx.com/docs/products/dhtmlxGrid/doc/events.html#grid_api_ev
pro-specific events marked with asterisk

You can 
a) if you plan to use pro version - contact us directly at sales@dhtmlx.com and request eval version of pro editon
b) use onEditCell event which available in both editions. The stage 2 of onEditCell event occurs after cell value changed, and can be used for tracking changes, same as onCellChanged event