We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

No dirty bit/state tracking?

Hello,

I have a sfDataForm working pretty well, but I do not see any internal or on-board "dirty" state tracking for the control?

Is the idea simply to call GetErrors() and if the returned list is not not empty then block form submission?

Thanks,

John

3 Replies

AK Ajith Kumar Senthil Kumar Syncfusion Team November 20, 2019 11:28 AM UTC

Hi John,   
  
Thank you for contacting Syncfusion support 
 
Query 1: 
  
Provided information is insufficient to understand your requirement clearly. On analyzing your sample, we suspect that your requirement is to commit the changes done in the editors to the corresponding properties explicitly. If yes you can change the commit mode in SfDataForm to Explicit. 
 
You can also refer our online user guide documentation regarding the same by the following link, 
 
 
If not Kindly, share more details about your requirement. It will be helpful for us to check on it and provide you a possible solution at the earliest.  
 
 
Query 2: 
Based on the provided information, your requirement of “Allow submission of form once we know all DataFormItems values are valid” can be achieved by allowing the submission once you find the errors in the event ValidationCompleted is zero. This event only invokes when you use ValidationMode Explicit. 
You can also refer our online user guide documentation regarding the same by the following link, 
 
 
We hope this helps. Please let us know, if need any further assistance. 
 
Regards,
Ajith. 
 



JO John November 22, 2019 07:23 PM UTC

Great, thanks for the help - sorted it out!


AK Ajith Kumar Senthil Kumar Syncfusion Team November 25, 2019 08:50 AM UTC

Hi John, 
  
Thank you for the update. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Ajith 


Loader.
Live Chat Icon For mobile
Up arrow icon