Need functions that extend the default validation checking for jqGrid

I have a jqGrid which is returning the same message twice, since I am using the built in validation to validate two related fields. They need to have the same message, so I need a way to only display the message once.

The error message box is created by Ajax/jqGrid and I do not know how to drill down and find that message.

Can someone please tell me how to define a custom validation function that extend the default validation checking?  The line where the error message is defined here:

+ "data-val-remote-url='/Ajax/IsConcEnough' data-val-remote-additionalfields='SubmissionID,samples[{0}].Vol' data-val-remote='Provided Volume and Concentration are not enough' data-val-remote-type='POST' "


I would like to call a function instead os using a string to set the data-val-remote parameter. And I would like to return a null string in the event the other control also has a value set for the  data-val-remote parameter.

Thanks.
newbiewebSr. Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
could you provide a link to your page?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiewebSr. Software EngineerAuthor Commented:
My site is internal use, and this change is not yet deployed. Funny, that was my question in an earlier day of me working with jqGrid validation.

Today I tested using C# code in the creationof the Ajax return error string values at page load. And that works!

BUT, seems rather like an oversight, but while I am able to set a max and a min value of the field, I seem only allowed one range message. First one defined, rules.

Odd.

data-val-range seems to hold the message. Any idea how to get BOTH a min and a max message?
0
newbiewebSr. Software EngineerAuthor Commented:
Hi, that link helped a bit.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.