cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

AP_10343008
15-Moonstone

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

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 ? 

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

6 REPLIES 6

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

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 ?

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

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

Yeah its a good idea. Thanks.

In Mashup, Ill display GridA to display data.

(If I use the property 'EnableAddDeleteButtons', Both Add and delete buttons are visible)
As you suggested, If User clicked Add Button in GridA, I'll show another GridB with editable fields to add new rows. 
But If user clicked delete Button, how to manage deleting rows in GridA or GridB.

Announcements


Top Tags