473,804 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 modalpopupexten der 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.dat abind?

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 10574
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 modalpopupexten der 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.dat abind?

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
modalpopupexten der 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 modalpopupexten der 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.dat abind?

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
modalpopupexten der 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
2953
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 disappears/becomes invisible... in general, any postback fired from within the modal popup makes the modal popup disappear.
0
1678
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 button; these two fields are for Member Number and for Social Security Number. I have written a Javascript function to handle that situation. A new condition was thrown at me yesterday in which I need to display a modal popup only if a Social Security...
3
2177
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 button field in the grid does not have an ID. Doug
16
11109
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 rows... but i want to implement the same as when i request for particular row at that time modal popup should be load.... because it's take so much execution time when the page loads... so is there any solution of my problem ??? I am waiting for Reply......
10
4346
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 if user clicks on that link button then the modal popup extender will be displayed... all thing is working well but when modal popup extender displays at that time in the back side collapsible extender also works that is not desirable situation of...
3
1964
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 my mysql database using ajax since the server side code will have already been executed, how would i go about doing this, i have read on the xmlhttprequest function but im not sure if that is what i need, in the modal pop up i have two textboxes and...
4
2326
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
3886
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 pages, and we don't want to load all that content until it's requested. So, what we want to do is place an IFRAME inside an UpdatePanel and, in the onclick event for the linkbutton or button control, set the SRC so that the content is loaded on...
2
1821
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 is part of still works, but the click events (postback) of the other popups is stopped. So, I have two data entry forms I want to validate, each within their own modal Popup panels. The system detects the user type accessing the page and this...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10341
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10089
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9171
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.