Hi,
i have to put the validation on jgrid cell.
Like user cannot be able to enter the any value in calender cell even not the numeric value.
- How can i prevent script injection in grid cells.
Thanks
Hi,
i have to put the validation on jgrid cell.
Like user cannot be able to enter the any value in calender cell even not the numeric value.
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.