Skip to main content
16-Pearl
October 16, 2024
Solved

Is there any possible ways to edit the cell only for newly adding rows in adv-grid ?

  • October 16, 2024
  • 2 replies
  • 1303 views

In adv-grid, I have enabled 'EnableEditButtons' and 'IsEditable' in advanced grid widget and In 'Configure Grid Columns' 'IsEditable' is selected for few columns. Then,

In UI, If user selecting ADD button to add rows in grid, there are any possible ways to edit the cell only for newly adding rows ? 

Best answer by Constantine

Not the best solution, but you can split it into two grids -- a read-only one for the existing data and an editable one for newly added rows. You can call it "review staged changes before saving them" and pretend it's a feature.🙂

 

/ Constantine

2 replies

16-Pearl
October 16, 2024

Hi, @AP_10343008  Your use-case looks like needs a custom service, look at the below article if it helps then good otherwise try to achieve it by customization.

https://www.ptc.com/en/support/article/CS391327

16-Pearl
October 16, 2024

My requirement is to make first 5 rows of ColumnA cells non-editable. And remaining rows of same columnA editable. Is this can be achieved by configuration json ?

16-Pearl
October 22, 2024

Hi @AP_10343008  You can create a custom widget for this.

18-Opal
October 22, 2024

Not the best solution, but you can split it into two grids -- a read-only one for the existing data and an editable one for newly added rows. You can call it "review staged changes before saving them" and pretend it's a feature.🙂

 

/ Constantine

16-Pearl
October 22, 2024

Yeah its a good idea. Thanks.