Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

I am not able to set the desire position for Ajax toolKit Control HoverMenuExtender, I tried many of the way but it could't.

Below are the code: Please check.
Thank in Advanced.


<asp:Panel ID="Panel1" runat="server" Style="display: none;"><br />
        <div><br />
            <table border="1" width="150px" cellpadding="0" cellspacing="0" style="background-color: Green;<br />
                border-color: Gray"><br />
                <tr><br />
                    <td style="color: White; width: 100px;"><br />
                        Case Hearing<br />
                    </td><br />
                    <td style="color: White; width: 50px; text-align: center;"><br />
                        <asp:Label ID="hylCaseHearing" runat="server"></asp:Label><br />
                    </td><br />
                </tr><br />
<br />
             </table><br />
       </div><br />
   </asp:Panel>


VB
<cc1:HoverMenuExtender ID="HoverMenuExtender1" BehaviorID="ModalBehaviour" runat="server"
      TargetControlID="Panel1" PopupControlID="Panel1" PopupPosition="right" OffsetX="200"
      OffsetY="100" PopDelay="50">


<br />
function ShowModalPopup(CS, NC, CE, IP) {<br />
<br />
            $('#<%=hylCaseHearing.ClientID%>').html(CS);<br />
          <br />
            $find("ModalBehaviour")._hoverBehavior._hoverElement.style.display = "";<br />
            $find("ModalBehaviour")._popupBehavior.set_x('1000');<br />
            $find("ModalBehaviour")._popupBehavior.set_y('10');<br />
<br />
            <br />
        }<br />
<br />
        function HideModalPopup() {<br />
            <br />
            $find("ModalBehaviour")._hoverBehavior._hoverElement.style.display = "none";<br />
        }<br />
<br />

I am using master page.
Posted
Comments
ZurdoDev 21-Jul-14 20:33pm    
What is the problem?
Bhanu Pratap Verma 22-Jul-14 0:10am    
I already mentioned my problem, I want to show popup in middle of the page but it is coming always left most side.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900