Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
regarding doubt in a piece of code
posted

custom: function (ui, fieldOptions) {
var scoreValidator = $("#grid").igGridUpdating("editorForKey", "FirstName").data("igValidator").element;
var gradeValidator = $("#grid").igGridUpdating("editorForKey", "Grade").data("igValidator").element;
if(ui>0){
$(gradeValidator).igValidator("option", "required", true);
$(gradeValidator).igValidator("option", "errorMessage", 'Enter Grade too!');
return true;
}
return true;

}

can anyone  explain what's the meaning of returning true?what will happen if we return false .Please provide a brief and simple explanation if .

Parents Reply Children
No Data