Author Topic: Problem on copy/paste and autofill for select elements  (Read 335 times)

moppo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Problem on copy/paste and autofill for select elements
« on: September 11, 2023, 09:18:07 pm »
i have a select column created using  type: 'select' on 'colModel'. The select colum is 'binded' to another hidden colum using 'mapIndices' like in the documentation examples.

The problem is that when i use copy/paste to copy a select value between different rows, only the string value is copied to the cell, but the hidden column 'binded' to the select is not updated automatically with the copied value. The same happens with the autofill.

You can see the problem for the autofill in the online demo 'Late binding of Select lists': if i select a value in the 'shipping via' column and then try to copy the value / autofill the value on another row, the string value is copied to the cell, but the underlying select value is not filled.

is this a bug or there is a way to handle this situation?
Thanks
« Last Edit: September 11, 2023, 09:21:11 pm by moppo »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Problem on copy/paste and autofill for select elements
« Reply #1 on: September 11, 2023, 10:42:19 pm »
Either formulas or rowTemplate option are useful to handle copy/paste and autofill cases.

Please check this example based on formulas:

https://paramquery.com/pro/demos/datamap

moppo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Problem on copy/paste and autofill for select elements
« Reply #2 on: September 12, 2023, 12:41:17 pm »
ok thanks. Are these features avalilable only on pro version ?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Problem on copy/paste and autofill for select elements
« Reply #3 on: September 13, 2023, 08:33:13 am »
formulas feature is available in free version too.

https://paramquery.com/demos/grid_formula

moppo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Problem on copy/paste and autofill for select elements
« Reply #4 on: September 14, 2023, 01:17:10 pm »
ok. Thanks for your help