- Home
- Forum
- Angular - EJ 2
- Updating Grid Datasource via Column DropDown change event Automatically Creates New Record
Updating Grid Datasource via Column DropDown change event Automatically Creates New Record
Grid has a dropdown column type, selecting a value in that dropdown can update the dropdown values in the same column for other rows. However, whenever updating the grid's datasource via dropdown's change event, everything works as expected except that the grid control adds a new record row at the top of the grid. The grid is set to allowAdding:false. How do I prevent the grid from creating that new record row. The grid edit params and dropdown edit params are set in the page oninit(). The grid and column are set up as follows:
Grid is defined as
Primary Key column
And a dropdown grid column defined as follows
Can you reproduce in an isolated example?
I see the problem
The problem was a typo in the onaction event that changed the requesttype. Removing this resolved the strange behavior.
- 4 Replies
- 3 Participants
-
JS Jamie Schmidt
- Jun 23, 2021 08:43 PM UTC
- Jun 24, 2021 06:54 AM UTC