ParamQuery grid support forum

General Category => Bug Report => Topic started by: hyh888 on November 04, 2024, 01:14:46 pm

Title: Bug in edit select demo version 9 and 10
Post 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.
Title: Re: Bug in edit select demo version 9 and 10
Post by: paramvir on November 04, 2024, 01:33:31 pm
This is not a bug, use validations to prevent unwanted data.
Title: Re: Bug in edit select demo version 9 and 10
Post by: hyh888 on November 04, 2024, 01:47:49 pm
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.
Title: Re: Bug in edit select demo version 9 and 10
Post by: paramvir on November 04, 2024, 07:06:40 pm
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
Title: Re: Bug in edit select demo version 9 and 10
Post by: hyh888 on November 05, 2024, 06:19:29 am
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.
Title: Re: Bug in edit select demo version 9 and 10
Post by: paramvir on November 05, 2024, 06:59:14 am
To show warning with red triangle, set pasteModel.allowInvalid to true.
Title: Re: Bug in edit select demo version 9 and 10
Post by: hyh888 on November 05, 2024, 07:24:14 am
Million thanks, it works.