Hi
I have seen lots of examples of how to configure custom validation in grid model to support CRUD.
If you use a popup for editing, but don't specify a template, it works as expected. The custom rules fire and the popup will not close until errors are fixed.
I cannot find any examples of how to apply custom rules to my model when using a template with a popup. I need the template to support my CRUD requirements, the default editor doesn't cut it. I also need some custom validation rules.
It seems as though the custom rules on my schema model are never executed when I specify my template for the popup editing..
I have tried guessing the syntax of using declarative binding for the custom validation, without success.
I have tried hooking into the edit event on the grid and attaching a validator to the popup container. My custom rules are executed, but not as expected. They only fire when the values of my controls change, but if you hit the update button again, the popup window closes accepting the invalid data.
I have modified one of the existing CRUD template samples here. http://jsfiddle.net/yamaan608/Svweg/1/ .
In the example, you can see the template is commented out and the validation works fine. A custom rule is applied to the age. If you uncomment the template, you will see no validation takes place.
Any pointers greatly appreciated.
I have seen lots of examples of how to configure custom validation in grid model to support CRUD.
If you use a popup for editing, but don't specify a template, it works as expected. The custom rules fire and the popup will not close until errors are fixed.
I cannot find any examples of how to apply custom rules to my model when using a template with a popup. I need the template to support my CRUD requirements, the default editor doesn't cut it. I also need some custom validation rules.
It seems as though the custom rules on my schema model are never executed when I specify my template for the popup editing..
I have tried guessing the syntax of using declarative binding for the custom validation, without success.
I have tried hooking into the edit event on the grid and attaching a validator to the popup container. My custom rules are executed, but not as expected. They only fire when the values of my controls change, but if you hit the update button again, the popup window closes accepting the invalid data.
I have modified one of the existing CRUD template samples here. http://jsfiddle.net/yamaan608/Svweg/1/ .
In the example, you can see the template is commented out and the validation works fine. A custom rule is applied to the age. If you uncomment the template, you will see no validation takes place.
Any pointers greatly appreciated.