A
Andrew Hayes
I have a parent page with a gridview, and a child page with a formview.
Using the solution on velocityreviews:
http://www.velocityreviews.com/foru...indow-from-popup-child-window-dialog-box.html
I was able to create the Parent and Child Window custom controls and get
them to work correctly so that I could select a row in the GridView of the
parent page and popup a child window with the details, and when the FormView
was updated the GridView of the parent was refreshed without closing the
child.
This was by using a CommandField to perform the Select of the row, and then
clicking on the WindowOpenButton. But I don't want the user to have to
perform 2 clicks, so I replaced the CommandField with a TemplateField that
included the WindowOpenButton.
Unfortunately, while I was able to pass the DataKey to the Child form using
a URL parameter, the SelectedIndexChanged event doesn't fire as the
Javascript onclick event stops the custom control from processing the
CommandName="Select".
Any ideas on how I might solve this?
This is, the select button for a row in the GridView changes the
SelectedIndex *then* fires the Javascript "window.open"...
TIA
Using the solution on velocityreviews:
http://www.velocityreviews.com/foru...indow-from-popup-child-window-dialog-box.html
I was able to create the Parent and Child Window custom controls and get
them to work correctly so that I could select a row in the GridView of the
parent page and popup a child window with the details, and when the FormView
was updated the GridView of the parent was refreshed without closing the
child.
This was by using a CommandField to perform the Select of the row, and then
clicking on the WindowOpenButton. But I don't want the user to have to
perform 2 clicks, so I replaced the CommandField with a TemplateField that
included the WindowOpenButton.
Unfortunately, while I was able to pass the DataKey to the Child form using
a URL parameter, the SelectedIndexChanged event doesn't fire as the
Javascript onclick event stops the custom control from processing the
CommandName="Select".
Any ideas on how I might solve this?
This is, the select button for a row in the GridView changes the
SelectedIndex *then* fires the Javascript "window.open"...
TIA