开发者

jgrid validation

开发者 https://www.devze.com 2023-01-18 11:21 出处:网络
i have to put the validation on jgrid cell. Like user cannot be able to enter the any value in calender c开发者_如何学运维ell even not the numeric value.

i have to put the validation on jgrid cell.

  1. Like user cannot be able to enter the any value in calender c开发者_如何学运维ell even not the numeric value.

    1. How can i prevent script injection in grid cells.

Thanks


All form of grid editing inclusive cell editing supports editrules options. With respect of the editrules settings you can implement validation of the data at the end of cell editing. If you don't find the standard validation rule which will implement all your requirements you can use custom:true option of the editrules and define your own validation function with respect of custom_func option.

With respect of beforeSaveCell you can make any modification of the cell value before it will be validated. So If you know a way how to do script injection, you can prevent this way in your code inside of your custom beforeSaveCell event handler.

0

精彩评论

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