I would like to customize Edit Page template.
Default Edit page makes DropDown control for each Foreign Column.
I would like to make an image next to drop down. When user would click on that image, the modal grid with data of foreign table would appear.
Then on select event of grid, the dropdown selected value would change with the one selected in modal (foreign) grid.
I tried to make that with changing the ForeignKey field template, but I have problems with postback.
I made modal grid with foreign table data, but when I filter, select, or do anything, that fires postback, the modal window closes.
I tried to fix that with function, that checks which control fired postback, and reshowing the modal window if the control was one of those on modal ...
After that, modal window showed up for every foreign key in current table.
So I think the right approach would be to change Edit page template.
If I put ModalPopupExtender + GridView ... and all other stuff on edit page, how can I than access this controls from field template?
I hope that someone can help me with this, because it is very hard to select foreign key value fro dropdown if foreign table has 5-10 columns and many rows ...
It's easier to select from grid -> lookup table.
Here is some of the code
View Complete Post