I have a change event hander for my datasource
Right now, if the newData exits normally, without hitting the return statement, then all works fine. But if i uncomment the last line in the listing below (which returns nothing) then the datasource is not updated in the Grid that is mapping it. I have tried returning true, false, this and e, but nothing works:
What is an event handler supposed to return (documentation needs to be filled, as well as what the value of e is supposed to be).
btw searchData below is that handle for the datasource
change: function (e) {
newData(e);
}
Right now, if the newData exits normally, without hitting the return statement, then all works fine. But if i uncomment the last line in the listing below (which returns nothing) then the datasource is not updated in the Grid that is mapping it. I have tried returning true, false, this and e, but nothing works:
What is an event handler supposed to return (documentation needs to be filled, as well as what the value of e is supposed to be).
btw searchData below is that handle for the datasource
function newData(e) {
$("#recCount").text(searchData.total());
chartData.series = [];
chartData.names = [];
var groups = searchData.view();
var groupCnt = groups.length;
var group;
// if (groupCnt == seachData.total()) return; // nothing grouped, no meaningful chart can be created.