Hi,
I'm trying to use the row-edit-dialog of the igGrid Updating to edit an item that has a list as a property. The list entries should be displayed with their own input fields and changes should be saved back to the object.
I was trying to solve this with templates but was not able to access the list in the template. It looks as if the data is added after the templating because inside I was only able to access the header text and the datakey not the data itself. Is it possible to still get this working or will I have to create my own dialog?
If I have to create my own dialog how would you recommend that I open it and get the changes back into the grid – if possible using the Updating events of the grid just with my own dialog.
I am using Ignite UI 2014.2 and Angular with the igniteui-angular.js directives.
Any help would be appreciated.
Hello Christian,
Since I don't know much about your igGrid configuration I cannot make any good advice at this moment. Can you share with me what's the type of your "list" column/property? In JavaScript there is not list type. Are you talking about a JavaScript array property or an object?
It would be great if you share some code sample so I can get an idea of the whole grid configuration.
Thanks in advance,Martin PavlovInfragistics, Inc.
Hello Pavlov,
thanks for looking into this. I attached a complete simplified sample. I meant an array - still thinking in the C# world ;-)
Could you please maybe look into both options:
1. How could I modify the standard editrowtemplate to work with an array type property
2. How could I integrate my own custom dialog into the standard updating of the igGrid - if possible also using features like commit and undo
I added a sample dialog that is currently opened when I select a row - instead I would like it to open if I click add new row or if I enter edit mode for a row.
Looking forward to your reply. Thanks,
Stefan