I have a grid panel and i make a function inside that like
myFunction: function(variable){
grid.getStore().each(function(item) {
if (item.get('value') == variable) {
alert('run'); // running
return true; // but not return true
}
});
return false;
}
But when i using
alert(grid.myFunction('abc')); // always return false Although alert('run'); running
How to fix that thank