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.
- 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.
精彩评论