ParamQuery grid support forum
General Category => Bug Report => Topic started by: hyh888 on November 04, 2024, 01:14:46 pm
-
In https://paramquery.com/pro/demos91/edit_select, user can batch copy unexpectable data into select-element columns(column 1 and column 3) without being warned.
It's also happen in version 10.
It seems there are many bugs for select in other demos too.
If there's a way to show warning, would you like to add it in demo?
For select colulmn in https://paramquery.com/pro/demos/datamap, illegal data are unable to copied into grid.
For select colulmn in https://paramquery.com/pro/demos/readonly_cells, illegal data can be copied into grid(column 2) without warning.
-
This is not a bug, use validations to prevent unwanted data.
-
Dear Team,
Would you like to give me a sample to help?
It seems only date column has demo to handle this problem, but many lines of code should be added.
-
Please also set pasteModel.allowInvalid to false along with the validations to prevent unwanted data while copy paste.
Example: https://paramquery.com/pro/demos/editing_custom
-
Dear Team,
In https://paramquery.com/pro/demos/editing_custom, when wrong data were copied into 1st column, there is no any warning(a red triangle will be more freindly) and wrong data disappeared.
For end users, that's horrible, they could not find that some data are wrong or missed. It will be better if there is friendly warning to mind them to correct the wrong data in pqgrid in place.
-
To show warning with red triangle, set pasteModel.allowInvalid to true.
-
Million thanks, it works.