Grid widget - AddRowButton for Entire Grid Property
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Grid widget - AddRowButton for Entire Grid Property
Hi Team,
I hope this message finds you well. I am encountering an issue with the GridWidget that has RowAddButtons enabled. When I click the add button, I end up with multiple rows of the same value in the editedData. I suspect this is happening because I do not have an ID column, and the data is being duplicated. IDFieldname property of the Grid is ID here
My Grid currently has three columns: ID, name, and Zip. The ID is an identity column in the table. When I click the add button and enter the name and Zip, I get two rows with the same value. For example, I have two properties: { "name": "", "Zip": 43444,"name": "", "Zip": 43444 }.
Could you please advise on how to ensure that I get only one edited row in this scenario? Your assistance in resolving this would be greatly appreciated.
Thank you!
- Labels:
-
Design
-
Mashup-Widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Similar question - "I would like one button to add rows to a grid widget and another button to remove rows, not sure how to accomplish this": https://community.ptc.com/t5/ThingWorx-Developers/I-would-like-one-button-to-add-rows-to-a-grid-widget-and-another/td-p/513280
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Vipul_Oswal
What version of ThingWorx are you running?
Which grid widget are you using? You might want to try a different one to see if you have the same behavior.
Regards.
--Sharon
