AJAX.net modal popup

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
 
N

Not Me

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
 
B

bruce barker

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)
 
N

Not Me

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top