开发者

Custom error messages in jqgrid

开发者 https://www.devze.com 2023-03-05 15:05 出处:网络
How I can display 开发者_高级运维custom error messages for required field and other validations in jqGrid forms.You can use attr property of the searchoptions to set additional attributes of the input

How I can display 开发者_高级运维custom error messages for required field and other validations in jqGrid forms.


You can use attr property of the searchoptions to set additional attributes of the input or select element used in the searching toolbar.

UPDATED: In the comment you explained that you means to customize the validation messages. You can ovewride the valuse from $.jgrid.edit.msg (see grid.locale-en.js or other localization files). For example you can use

$.jgrid.edit.msg.required = "is missing";

If you want to make the message more dynamic you can use custom editrule and build the error message inside of custom_func.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号