Hi Sahal,
Thanks for your update.
Query : the desired behavior of the grid should be that when a primary key is set by the code, the grid should automatically create a hidden primary key and manage the CRUD operation
We have analyzed your query and by default, the grid must be configured with a primary key column to perform the CRUD operations.
In your scenario, you have provided the data source as local array and the save operation is performed externally to the server hence the primary key obtained after the ‘Update’ action is not reflected in the grid. To resolve this, we suggest to get the updated data from the database and provide it to the grid once again in the actionComplete event when args.requestType is ‘save’.
Also please provide the below information for us to analyze your query and provide a better solution as soon as possible,
- Share the full grid code example?
- Share the reason for setting the grid data source with local data?
- Share the server side code example?
- Share your exact grid requirement for us to create a custom sample?
Please get back to us for further assistance.
Regards,
Madhu Sudhanan P