473,404 Members | 2,195 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,404 software developers and data experts.

Modalpopup Extender issue

210 Expert 100+
If you have used modalpopup often you are aware that if the content of the page is big enough you are able to scroll the page and still the modalpop remains at the center of the page or the x y coordinates provided. This leads to a problem that i am having using modal pop up .

if the content inside the panel that is being extended is big that it doesn't actually fit in the screen the pop up automatically chops the data off. is there a way to actually view the data that is being chopped off. If you scroll the page modalpopup automatically repositions and still does not allow to access the chopped data.

The only way around it that i have found is using a div with overflow to scroll and setting the panels size less than 400px( for example). This will display the popup and i still am able to access the data displayed.

I am wondering if there is a better way to handle this issue? Is there something that i am missing?

I have seen this done. if you visit the link below and click on the image a pop up opens. I noticed that the popup is set to fixed position and if we scroll the page popup also scrolls allowing us to access data that is being chopped at initial display.

http://www.nepalnews.com/main/index....llery/489.html

Can any one put some thoughts on this ?
Dec 15 '09 #1
9 8232
Frinavale
9,735 Expert Mod 8TB
I totally do not understand what the problem is.
A ModalPopup extender is used to block the page's content to ensure that the user does something before continuing to use the page content.

Are you sure you're using the right tool?
I'm not sure what you're trying to do....

-Frinny
Dec 15 '09 #2
semomaniz
210 Expert 100+
yes it blocks the page but on the panel that is being extended we put a small user input form and add a button to update the data. I have set a form inside the panel that is being extended but i do have a image that has a bigger size so when it loads part of the form is being cut of because of size. I am not being able to access the part that is being cut off.
Here is a sample code
Expand|Select|Wrap|Line Numbers
  1. <asp:Panel ID="pan1" runat="server">
  2.      <p><asp:LinkButton ID="pandispatchclose" runat="server" Text="Close" /></p>
  3.     <div>
  4.         <table border="0" cellpadding="2" cellspacing="2" width="100%">
  5.             <tr>
  6.                 <td style="width:35%">Inhouse Agent :</td>
  7.                 <td style="width:65%"><asp:Label ID="label1" runat="server" Text="" /></td>
  8.             </tr>
  9.             <tr>
  10.                 <td style="width:35%">Date / Time :</td>
  11.                 <td style="width:65%"><asp:Label ID="label2" runat="server" Text="" /></td>
  12.             </tr>
  13.  
  14.             //I have more fields for data entry and also have an image here 
  15.         </table>
  16.         //This is a simple small form(popup) what if i add the following for simplictiy
  17.         <p>
  18.         <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
  19.         </p>
  20.         //after adding the breaks the panel pan1  will have a length bigger than the screen size, this is where 
  21.         //the data gets cut off and i am not being able to access the data
  22.     </div>
  23. </asp:Panel>
  24. <cc2:ModalPopupExtender id="mpe1" runat="server" TargetControlID="btnhid" 
  25.     PopupControlID="pan1" BehaviorID="myMPEBID" Drag="True" 
  26.     BackgroundCssClass="modalBackground" CancelControlID="pandispatchclose" />
  27.  
Dec 15 '09 #3
Frinavale
9,735 Expert Mod 8TB
Hmm I think that it has something to do with the styles you choose for the popup window and for the background (I refer to it as the "shield").

I haven't used the ModalPopup Extender before because I developed my own before it was developed.

Let me take a look at what the modal popup is using...sec.

-Frinny
Dec 15 '09 #4
semomaniz
210 Expert 100+
Here is the CSS
Expand|Select|Wrap|Line Numbers
  1.  
  2. .modalBackground {
  3.     background-color: Gray;
  4.  
  5.     filter: alpha(opacity=50);
  6.     opacity: 0.7;
  7. }
  8.  
  9. .modalPopup {
  10.     background-color:#ffffdd;
  11.     border-width:3px;
  12.     border-style:solid;
  13.     border-color:black;
  14.     padding:3px;
  15.  
  16. }
  17.  
  18.  
Dec 15 '09 #5
Frinavale
9,735 Expert Mod 8TB
Yup, just as I suspected.

I took a look at the ModalPopupBehaviour.js file for the ModalPopupExtender. It sets the the panel and the "shield" to a position style of "fixed". What you really want is to set the style of the "panel" that you are popping up to a position style of "absolute".

Hmm..not sure what to suggest here.
You could modify the Ajax Toolkit to do what you want it to do.
Or you could create your own control...like I did...

Or if you don't want to do all that work you could just use the overflow:scroll style like you are doing currently :) (this is probably the easiest)

-Frinny
Dec 15 '09 #6
semomaniz
210 Expert 100+
Setting the panels position as absolute doesn't help either. I will give a try to create my custom modalpopup extender
Dec 15 '09 #7
semomaniz
210 Expert 100+
I am kind of lost never created custom extenders can you direct me to right direction have been scanning some articles found through google.
Dec 15 '09 #8
Frinavale
9,735 Expert Mod 8TB
I haven't done an extender.
I typically do custom Ajax enabled server controls....but I don't think they are that different from each other.

Here's a walkthrough for Creating an Ajax extender.

You should be able to take what is in the Ajax Toolkit and modify it to your needs though (just with a simple change of a couple of lines).

-Frinny
Dec 16 '09 #9
semomaniz
210 Expert 100+
I did get the problem fixed Thanks frinny .
Dec 16 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: ignatova | last post by:
Hello, I have been using IBM Net Search Extender to perform full text searches on text columns in relational tables in DB2 without any problems until now. However it doesn't seam to function...
2
by: tfsmag | last post by:
This question is in reference to the posted issue at codeplex... http://www.codeplex.com/WorkItem/View.aspx?ProjectName=AtlasControlToolkit&WorkItemId=4652 Has anyone else ran into this issue...
5
by: Darth Continent | last post by:
Hello, I'm trying to replicate the functionality presented here specific to the ModalPopup control: http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx I've created a C# Ajax-enabled...
0
by: Nemisis | last post by:
Hi everyone, Does anyone know how to show an Ajax ModalPopup when a page loads? I would like to use it as a warning dialog for a company record, so that when a user navigates to a companies...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
1
by: Jamie Sutherland | last post by:
Hi , On my page I have updatepanel 2 buttons, 2 modalpopup extenders panel with a updatepanel and some textboxes in it. I want to use the 2 buttons to open the same panel using the...
1
by: gsauns | last post by:
I have a DetailsView inside a ModalPopup (using the AJAX ModalPopupExtender). I would like the user to have the ability to change the DetailsView's mode within the ModalPopup. But whenever I...
2
by: sangam56 | last post by:
Hi all. I have used modalpopup extender to popup a login from a panel. It is shown when a timer in the masterpage fires it's tick event. Everything is going ok. But each item a child page loaded the...
2
by: E11esar | last post by:
Hi there. I am utilising a ModalPopupExtender in my ASP.Net (C#) page, to act as a dialog box so a user can either select from a dropdown list or perform a search for an item. This all works...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
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...
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.