473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

AJAX.net modal popup

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

Jan 5 '07 #1
3 10546
Not Me wrote:
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
Jan 5 '07 #2
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)
Not Me wrote:
Not Me wrote:
>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

Jan 5 '07 #3
bruce barker wrote:
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

Jan 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Samuel Rhodes | last post by:
hi i am using a ajax modal popup to allow the user to search an item and select the required item from the list. whenever i try to search the item, which causes a post back....the modal popup...
0
by: =?Utf-8?B?QWxCcnVBbg==?= | last post by:
I have a situation in which I need to check for data in either of two fields and display an alert if neither field contains data or if both fields contain data when the user clicks on a View...
3
by: SE.Computerguy | last post by:
I am trying to use the AJAX modal popup on a click event from a gridview. Any ideas on implementing this? The AJAX control is looking for a TargetControlID that will trigger the popup but the...
16
malav123
by: malav123 | last post by:
Hi, I am using Ajax's modal popup extender to display the information about all the rows of gridview but the problem is when page loads, modal popup extender loads for all the...
10
malav123
by: malav123 | last post by:
Hi, In my master page i have right pannel, in which i am using the user control and collapsiblePanelExtender and in that right panel there is one link button named "Event", so...
3
by: jarremw | last post by:
hello all, what i have is a modal popup control extender, i have an ajax script that saves the value of the two textboxes that are in the popup, what i am needing is a way to insert those values into...
4
by: fran_j_diaz | last post by:
Hi, I have a page with an Ajax modal popup. I would like to know when my Modal popup is opened, my page still able to modify. Is it possible ? (I use Visual Studio 2005, c# )
3
by: Mike Hofer | last post by:
Okay, here's the situation: we want to be able to display ASPX pages in an UpdatePanel. The reasons for this are performance related. The site in development uses *lots* of modal popups from some...
2
by: Alec MacLean | last post by:
Hi, I have a page using AJAX. The page has three modal popups that work fine when I don't have field validators in place. As soon as I put a validator in place, the popup "form" the validator...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.