Author Topic: Bug in edit select demo version 9 and 10  (Read 215 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 141
    • View Profile
Bug in edit select demo version 9 and 10
« 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.
« Last Edit: November 04, 2024, 01:42:53 pm by hyh888 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Bug in edit select demo version 9 and 10
« Reply #1 on: November 04, 2024, 01:33:31 pm »
This is not a bug, use validations to prevent unwanted data.

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 141
    • View Profile
Re: Bug in edit select demo version 9 and 10
« Reply #2 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.
« Last Edit: November 04, 2024, 01:49:20 pm by hyh888 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Bug in edit select demo version 9 and 10
« Reply #3 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

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 141
    • View Profile
Re: Bug in edit select demo version 9 and 10
« Reply #4 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.
« Last Edit: November 05, 2024, 06:38:24 am by hyh888 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Bug in edit select demo version 9 and 10
« Reply #5 on: November 05, 2024, 06:59:14 am »
To show warning with red triangle, set pasteModel.allowInvalid to true.

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 141
    • View Profile
Re: Bug in edit select demo version 9 and 10
« Reply #6 on: November 05, 2024, 07:24:14 am »
Million thanks, it works.