ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Sunny on August 17, 2015, 11:53:55 pm

Title: Validation msg is not displayed when allowInvalid is passed false to isValid api
Post by: Sunny on August 17, 2015, 11:53:55 pm
Hi,

As per API isValid API, http://paramquery.com/pro/api#method-isValid (http://paramquery.com/pro/api#method-isValid), validation msg will be shown in tooltip when allowInvalid is passed as false. I noticed it is working vice-versa, tool-tip is been shown when allowInvalid is passed as true.

You can verify this at demo: http://paramquery.com/pro/demos/editing_instant (http://paramquery.com/pro/demos/editing_instant), line 79 and 85.

Can you please advice.
Title: Re: Validation msg is not displayed when allowInvalid is passed false to isValid api
Post by: paramvir on August 18, 2015, 11:19:50 am
Documentation is correct in this regard. You can verify it by calling isValid() method from click of a button.

It can also be verified from the mentioned Line numbers in demo by setting breakpoints just before and after the method calls.

Please note that isValid() method is also used internally by the grid as part of validation process.