Solved

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

Posted on 2010-11-11
3
436 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 500 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 500 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now