AJAX.net modal popup

  • Thread starter Thread starter Not Me
  • Start date Start date
N

Not Me

Hey,

I'm using the MS AJAX libraries to achieve a modal popup window. Prior
to using the toolkit control, I have a gridview and detailsview objects
visible on the page.. when the gridview row is selected, the detailsview
updates (in a seperate updatepanel - no full refresh)

Now I've added the modalpopupextender and the result is that although
the ok/cancel buttons on the panel appear.. the details within the
detailview are blank (i.e. the whole thing is invisible.. as default
with no data).

Could it be because the modal popup events are intercepting the gridview
update event which is causing the detailsview.databind?

Hope that makes sense... if so is there any way of making the databind
occur prior to the modalpopup effect?

Thank you!
Chris
 
Not said:
Hey,

I'm using the MS AJAX libraries to achieve a modal popup window. Prior
to using the toolkit control, I have a gridview and detailsview objects
visible on the page.. when the gridview row is selected, the detailsview
updates (in a seperate updatepanel - no full refresh)

Now I've added the modalpopupextender and the result is that although
the ok/cancel buttons on the panel appear.. the details within the
detailview are blank (i.e. the whole thing is invisible.. as default
with no data).

Could it be because the modal popup events are intercepting the gridview
update event which is causing the detailsview.databind?

Hope that makes sense... if so is there any way of making the databind
occur prior to the modalpopup effect?

Further to the above.. if I add a button and use that as the
modalpopupextender targetcontrolid, and click this after the gridview
select.. then it all works fine - which suggests my theory was correct.
But how can I get it all to work together? (can I make the button
invisible, and 'click' it within the code for the gridview itemselect?)

cheers,
Chris
 
the popup extender registers a onclick handler for the target control
(so it knows when to popup). it also cancels event propagation. i'd just
add a property to the control to turn this behavior off (just a couple
lines of code).

-- bruce (sqlwork.com)
 
bruce said:
the popup extender registers a onclick handler for the target control
(so it knows when to popup). it also cancels event propagation. i'd just
add a property to the control to turn this behavior off (just a couple
lines of code).

aha, cheers Bruce - I'll take that path :)

Chris
 
Back
Top