Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by dilip on Mar 24, 2009 22:59
open dhtmlx forum
dhtmlxgrid keep focus on mandatory fields

Hi,
Is it possible to keep focus on the empty fileds in the grid. Or is it possible not to submit the page unless and until the mandatory fields have been entered some value and alert the user/ show message if the value kept empty.

Thanks in advance,
Regards,
Dilip.
Answer posted by Support on Mar 25, 2009 01:57
If grid used with dataprocessor - setVerificator method of data processor can be used ( it will mark invalid fields, and prevent data sending before value will not be corrected )
There is no built in support for normal mode, but you can try to use experimental extension, which adds validation possibility

Code and sample of usage attached. 
Attachments (1)