Hi, i’m trying to listen to the “onStoreUpdated” event on the datastore, but it doesn’t seem to be called.
I took the sample at samples/dhtmlxDataStore/03_dynloading/03_grid_dynsrnd.html. I tried to attach a handler like this:
data.attachEvent(
"onStoreUpdated",
function(id, data, mode) {
console.log("StoreUpdated :D");
return true;
}
);
When I change the data on any of the grids, it is never called.
Somehow, if do:
data.callEvent("onStoreUpdated", ["arguments", "dont", "matter"]);
The event fires and I get the expected output.
I think this may be a bug on the dataStore. Am I doing something wrong?.
Thank you.