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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Position of validation messages in InlineTemplateForm mode

Thread ID:





117732 Dec 4,2014 06:20 PM UTC Dec 5,2014 10:56 AM UTC ASP.NET MVC 1
Tags: Grid
Reinhard Schürer
Asked On December 4, 2014 06:20 PM UTC


Is it possible to change the position of validation error message?

Currently the message appear below the control overlapping the control below, so I would prefer the error message on the right side of the control.

As it's based on the jquery validation I tried to change the errorElement but without success so far.

Any example how to do this?


Madhu Sudhanan P [Syncfusion]
Replied On December 5, 2014 10:56 AM UTC

Hi Reinhard,


Thanks for using Syncfusion products.


Please find the response.


Query: “Is it possible to change the position of validation error message?”


We can place the error message by overriding the errorPlacement of the jquery validate as follows. In the below code snippet, we have changed the errorPlacement of the message element in the actionComplete event. Please refer the code snippet.




            . . . . .





function setErrorElement(args) {

            if (args.requestType == "add" || args.requestType == "beginedit") {


                var validate = $("#" + this._id + "EditForm").validate();


                validate.settings["errorPlacement"] = function (error, element) {

                    var $td = element.closest("td"), $container = $(error).addClass("e-error");


                    element.hasClass("e-numerictextbox") ? $container.insertAfter(element.closest(".e-numeric")) : $container.insertAfter(element);

                    $container.offset({ left: element.offset().left + element.outerWidth(), top: element.offset().top });








For your convenience, we have created simple grid sample too and the same can be downloaded from the below location.


Sample Location: http://www.syncfusion.com/downloads/support/directtrac/general/Forum_errorMsg1024552941.zip


Please let us know if you have any queries.



Madhu Sudhanan. P


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon