When adding validators they worked 'til the page made an AjaxRequest, then they'd stop workiing.
So, I figured that the validators were getting screwed by the Ajax call. Reasonable, no?
So, I added a regular ASP Panel to the page - outside of the AjaxPanel - and added the validators to that.
The thing is they don't seem to be working correctly. The problem is that the client-side code doesn't include the value of ControlToValidate ...
| var input_002Erng1_002Efirst_rangevalidator = document.all ? document.all["input_002Erng1_002Efirst_rangevalidator"] : document.getElementById("input_002Erng1_002Efirst_rangevalidator"); |
| input_002Erng1_002Efirst_rangevalidator.controltovalidate = ""; |
| input_002Erng1_002Efirst_rangevalidator.errormessage = "The value for field \'A date range From\' is required and must be between 1 Jan 0001 and 31 Dec 9999"; |
| input_002Erng1_002Efirst_rangevalidator.display = "None"; |
| input_002Erng1_002Efirst_rangevalidator.evaluationfunction = "DateInputRangeValidatorEvaluateIsValid"; |
Now, everything I do in the code-behind suggests that ControlToValidate is set. In fact, if I add a new attribute to the validator and set it to ControlToValidate, the value is there.
I know that this isn't a RadInput problem directly, but I was wondering if anyone else had encountered a similar problem using RadInput, validators and AjaxPanels.
--
Stuart