Please can you tell me if there is a way of ‘break’ or ‘continue’ out of forEachRow and forEachCell loops?
Thanks
Purvez
Please can you tell me if there is a way of ‘break’ or ‘continue’ out of forEachRow and forEachCell loops?
Thanks
Purvez
Try to use following code:
grid.forEachRow(function(id){
if(something) return;
});
Hi Olga, what you are suggesting would work as an alternative to ‘Break’ but there are times when I want to abort further processing on the current row but still want to ‘Continue’ with the loop.
Any suggestions for achieving that?
Thanks
Purvez
Are you saying that I can use the javascript ‘continue’ statement within the forEachRow and forEachCell loops? If that is the case then I’m guessing ‘break’ would also work.
Try to use it. Will it work for you?