Question

Is it possible to Scroll to the Validation error of the ValidationCalloutExtender?

I have a large page sometimes when I click on a button on the top of the page and If I forgot to enter something in one field located at the end of the page I can't know what exactly is happening on the page unless I happen to scroll down and see the ValidationCalloutExtender popup, is there a way to scroll to the field where the ValidationCalloutExtender has been triggered?

No correct solution

OTHER TIPS

Place this script at very bottom of your page

<script type="text/javascript">
    var originalShow = Sys.Extended.UI.ValidatorCalloutBehavior.prototype.show;
    Sys.Extended.UI.ValidatorCalloutBehavior.prototype.show = function (force) {
        this._elementToValidate.scrollIntoView(false); //true to align with the top of the scroll area
        originalShow.call(this, force);
    };
</script>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top