Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 20, 2008 04:23
open dhtmlx forum
mygrid.setVerificator() always starts from last column

My grid ver.: 2.0 pro

I have 5 column, 4 column verified by setVerificator() and custom function:

myDataProcessor.setVerificator(1,checkIfNotEmpty);    
myDataProcessor.setVerificator(2,checkIfNotEmpty);
myDataProcessor.setVerificator(3,checkIfNotEmpty);
myDataProcessor.setVerificator(4,checkIfNotEmpty);

First checked column is always 4 column, even if I try:

myDataProcessor.setVerificator(4,checkIfNotEmpty);
myDataProcessor.setVerificator(1,checkIfNotEmpty);    
myDataProcessor.setVerificator(2,checkIfNotEmpty);
myDataProcessor.setVerificator(3,checkIfNotEmpty);

How can I change order of verification to 1,2,3,4 ?
Answer posted by Support on Nov 20, 2008 06:06
Verificator always fire in normal column order, it doesn't related to order of setVerificator commands. 
Beware, if columns was moved after grid initialization, order of verificator callw will not change