This is a migrated thread and some comments may be shown as answers.

Editable child grid in popup template cannot be edited

4 Answers 186 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Remco
Top achievements
Rank 1
Remco asked on 17 Sep 2012, 10:37 AM
Hello,



I have a grid that uses popup editing with a custom template. In this custom edit template I have a grid with child entities. In the edit event handler of the parent grid I set the datasource of the child grid with the appropriate filter for the parent row. I can see that the child entities are loaded ok. I want this child grid to be editable. Every row in the child grid shows edit and destroy commands and the child grid toolbar has a create command. However, when I click on the create, edit or destroy buttons, nothing happens. Has anybody seen this before? Should I add a code sample?



cheers



Remco

4 Answers, 1 is accepted

Sort by
0
Remco
Top achievements
Rank 1
answered on 17 Sep 2012, 12:56 PM
I managed to get the editing and deleting of the child entities to work. I made a silly mistake there. But the create command in the toolbar of the child grid is still not doing anything. I suspect this is because the child grid has a filter set that means any new records do not show up. I need to be able to set a foreign key as a new child entity is created. I cannot see the grid api has a handler for that.
0
Remco
Top achievements
Rank 1
answered on 17 Sep 2012, 01:21 PM
I suspect I need to create a custom create toolbar command that creates my new child entity setting the foreign key and then manually set the new row into edit mode. I can see how I can do a custom column command, but I cannot see how I can create a custom toolbar command.
0
Remco
Top achievements
Rank 1
answered on 17 Sep 2012, 01:52 PM
0
Guillaume
Top achievements
Rank 1
answered on 22 Oct 2012, 06:33 PM
I've been trying to embed a grid inside my custom popup edit template witout success. Is there a part of your code you could share to help me get started?
Thanks
Guillaume
Tags
Grid
Asked by
Remco
Top achievements
Rank 1
Answers by
Remco
Top achievements
Rank 1
Guillaume
Top achievements
Rank 1
Share this question
or