Is there anything wrong?
http://webix.com/snippet/eb17d008
Snippet tool wraps all code in a separate scope, so you need to declare global functions in a different way ( it doesn’t matter for code in a standalone app )
http://webix.com/snippet/c1292477
Also, in the original code, mysum method receives only one parameter.
Thank you. It’s worked now.
But somehow calculated value isn’t changing when related columns has changed. Also math method is not working with binding.
Here is my binding function.
$$("users).bind($$("records"), "$data", function(obj,source){
if (!obj) return this.clearAll();
var self = this;
webix.ajax("/api/users/"+obj.id+"/records, function(text, data, XmlHttpRequest){
self.data.importData(data.json());
self.refresh();
});
});
Also I’ve tried this.load but as I say in different post, it’s just going endless loop
Calc doesn’t work properly for recently added rows.
somehow calculated value isn’t changing when related columns has changed
It works for direct column editing.
hello there…
Still working on how to use math on bind-ed table. Is it a bug? should I run some function for every bind?
thank you