Hello,
I know DataGrid have the InsertNewRow function when you right-click on the table, but i need to add button with the same functionality and i can´t figure it out. Hope you can help me
Thank you.
Hello Koya,
You can achieve that by setting into the parameters the structure that you want. Please check the following example:
GridOS.ExternalAPI.addRow({PO_No: 'Ronaldo', Quantity: 15}, 0, GridOS.GridObject[0].gridId)
Thank you for your question.
Tiago Pereira
Oleksandr Danilov wrote:
Hi Danilov,I dont think you can achieve this by DataGrid component.You have to customize in your case
Hi Oleksandr Danilov,
You can achieve this by our ExternalAPI, to add new rows use the method bellow:
GridOS.ExternalAPI.addRow({}, 0, '" + Grid.Id + "');
Parameters:
There is a sample attached, hope it can help you achieve your goals.
Regards
Ricardo Valim
What should I do if I want to set a value for the first Parameter?