ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: moppo on September 11, 2023, 09:18:07 pm

Title: Problem on copy/paste and autofill for select elements
Post by: moppo 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
Title: Re: Problem on copy/paste and autofill for select elements
Post by: paramvir 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
Title: Re: Problem on copy/paste and autofill for select elements
Post by: moppo on September 12, 2023, 12:41:17 pm
ok thanks. Are these features avalilable only on pro version ?
Title: Re: Problem on copy/paste and autofill for select elements
Post by: paramvir on September 13, 2023, 08:33:13 am
formulas feature is available in free version too.

https://paramquery.com/demos/grid_formula
Title: Re: Problem on copy/paste and autofill for select elements
Post by: moppo on September 14, 2023, 01:17:10 pm
ok. Thanks for your help