Categories | Question details Back To List | ||
Column value validation Dear Sir/Madam, I am using dhtmlxTreeGrid where I have 4 level tree (0 to 4). In this grid I would like to use the validation for adding and updating rows in different level. For example. When I am going to add the row at 2nd level then I want to validate the 0th column, and when I adding the row at 3rd level I have to validate 0th and 2nd column. same condition I want use while updating row. But when I used myDataProcessor.setVerificator(2,checkSev); its showing validation message for all the level . Please help me resolve this problem. Answer posted by Support on Dec 22, 2008 03:50 You can use setOnBeforeUpdateHandler instead of verificators For example dp.setOnBeforeUpdateHandler(function(id,operation){ var level = grid.getLevel(id); if (some_check(id,level)) return true;//allow operation alert("validation error"); return false;//deny operation }); |