Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

when display the popup should block dropdownlist. I close the popup when I enable the dropdownlist

Posted on 2010-11-11
3
Medium Priority
?
452 Views
Last Modified: 2012-05-10
Hi experts, I have 2 web pages: a father and a popup.
The parent page is
1. edit icon (in a grid view)
2. combo (parent page)
When I press the edit icon calls the popup window. The problem is that this popup appears sometimes combo parent page (overlaps)
I am using asp.net, vb.net, vstudio 2005 and ajax.

what comes to mind is:
1. when you display the popup should block dropdownlist
2. I close the popup when I enable the dropdownlist
If you have another idea would be great

code behind
CType(e.Row.FindControl("ibtnEditarCandidato"), ImageButton).Attributes("OnClick") = "javascript:return parent.pAbrir_MdpopupCandidatosFinalistas('M','" + strNroProvision + "','" + strIdFinalista + "');"

javascript
function pAbrir_MdpopupCandidatosFinalistas(pstrAccion,p_INTIDNUMEROSOLICITUD,p_intidfinalistas){
        var ctrllblAccionModal= document.getElementById('ctl00_lblAccionModal');
          var ctrlpnlModal= document.getElementById('ctl00_pnlModal');
          var btnCerrar = document.getElementById('ctl00_btnCerrarModal');
          var strHtml ;
          
          //btnCerrar.style.display='';                 
          
        
            strHtml='<iframe runat="server" id="ifrModal" width="100%" height="230px" frameborder="0"scrolling="auto" marginheight="0" marginwidth="0" ';
         
           ctrllblAccionModal.innerText=">> Candidato Finalista ";
           strHtml=strHtml + 'src="../ModalPopup/frmEditCandidatosFinalistas.aspx?QS_INTIDNUMEROSOLICITUD='+ p_INTIDNUMEROSOLICITUD +'&QS_intidfinalistas='+ p_intidfinalistas +'"></iframe><br />';
           
            document.getElementById('divFrameMasterModal').innerHTML= strHtml ;
            ctrlpnlModal.style.width = "520px";
            ctrlpnlModal.style.height= "290px";
            fNavegadorCombo(true);
            //fCargarLoadModalWBC(ctrlpnlModal);
            $find('ctl00_mdlModal')._xCoordinate = 280
            $find('ctl00_mdlModal')._yCoordinate = 100
            $find('ctl00_mdlModal').show();
       
     }

The datagrid this in an update panel, i attached the file

dropdownlistOVERLAPS.JPG
block-dropdownlistHTMgenerated.txt
0
Comment
Question by:enrique_aeo
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 2000 total points
ID: 34117836
there are two solutions you can use.
One is simply hide dropdown list when you click on edit button.

Another is use update progress control with iframe.
e.g.
<asp:UpdateProgress ID="MainUpdateProgress" runat="server" DisplayAfter="0"
        AssociatedUpdatePanelID="TestUpdatePanel">
        <ProgressTemplate>
            <div>
                <iframe style="height:100%;width:100%;position:absolute;top:0px;left:0px;
                    border-style:none;border-width:0px; overflow:hidden;"></iframe></div>            
        </ProgressTemplate>
    </asp:UpdateProgress>

Hope this solves your problem.
0
 

Author Comment

by:enrique_aeo
ID: 34120646
You mean replacing the progress you are putting update or create a new one?
0
 
LVL 22

Assisted Solution

by:Mrunal
Mrunal earned 2000 total points
ID: 34121179
Considering you have taken update panel.
If you have already added updateprogress control then add only iframe tag from my previous post.

If you have not added any updateprogress control then copy above and paste as it is.

What internally happening is it just covers your whole rendered document with iFrame which is responsible for disabling dropdownlist control.

Hope you get what i mean,
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question