C# - Context Popup Hiding After Ajax Postback?

Nov 30, 2010

I am using this jQuery context popup menu extension:http://www.trendskitchens.co.nz/jquery/contextmenu/
This context menu is bound against an ASP.NET treeview adding a context menu to all items.All contained within an update panel.In order to select the item when right clicking, I am using JQuery to parse the postback from HREF that would normally fire when the tree item is being clicked, and using eval() against this HREF.This results in a post-back to IIS. Immediately after is my JQuery code for displaying the context menu.The context menu appears briefly however goes as soon as IIS returns the updated page data.Just after some general advice on how people think is best to approach this. I can avoid this by making users LEFT click the tree node prior to right clicking it, but that just seems unintuitive.

View 1 Replies


Similar Messages:

AJAX :: Modal Popup Panel Not Hiding On Page Load / Hides On Postback

Dec 14, 2010

When I browse to my page that has the modal popup panel on it, the panel initially is visable, and when I do a postback it acts as intended. let me know if you need the master page....

[Code]....

[Code]....

View 2 Replies

AJAX :: Calendar Hiding Behind The Modal Popup Extender?

Nov 9, 2010

I am using modal popup extender to display a user control which has AjaxToolKit- calender extender. When i click on it, it is shown in the background and i cant click or select a date.. i couldnot get it to work..

View 3 Replies

AJAX :: Calendar Extender Hiding Behind Modal Popup

May 7, 2015

I have used Ajax Modal popup extender for popup an the css for modal popup is as folows:

.modalBackground {
-webkit-border-radius: 12px 12px 23px 23px;
border-radius: 12px 12px 23px 23px;
-webkit-box-shadow: 12px 12px 12px 0 #946C10;
box-shadow: 12px 12px 12px 0 #946C10;
background-color: LightGrey;
filter: alpha(opacity=80);
opacity: 0.7;
position:fixed;
}

And the HTML for modal popup is as shown bellow:

<cc1:modalpopupextender id="ModalPopupExtender1" runat="server" targetcontrolid="btncomplains"
popupcontrolid="panelstatus" backgroundcssclass="modalBackground" cancelcontrolid="ImageCancel1">
</cc1:modalpopupextender>
<asp:Panel ID="panelstatus" GroupingText="Submit Details" BackColor="WhiteSmoke"
Width="600px" runat="server" Style="border: thick solid #CCCCCC;">

[Code] ....

I have tried all sorts of z-index but nothing seem to have worked i have changed z-index from 0 to 99999999and nothing have changed and so I resorted to required field validators and watermark but how to show that on top of modal popup and if I am doing anything wrong I have also tried this script but didint worked:

<script language="javascript" type="text/javascript">
function onCalendarShown(sender, args) {
alert(sender._popupBehavior._element.style.tostring());
sender._popupBehavior._element.style.zIndex = 9999999;
}
</script>

I have seen many website for this question but nothing seem to have worked and also there must be some error with css as i have described it above...

View 1 Replies

AJAX :: Hiding Modal Popup Extender From Client Side?

Feb 7, 2010

I need to hide the modal popup on client using javascript.

if i use

$find('ModalPopupExtender1').hide();

for hiding it is throwing an error saying

'null' is null or not an object'

View 2 Replies

AJAX :: ModalPopupExtender Modal Popup Hiding Behind Master Page

Sep 20, 2015

I am working on a website where i used bootstrap and popup box is of jquery. whenever a popup appears on the screen it hides behind the master page.

View 1 Replies

AJAX :: TabContainer Hiding On Postback

Sep 18, 2010

I have a asp.net page that contains a Ajax TabContainer control with three tabs, this is all dynamically created and added using the code-behind file. Inside each tab I have one or more gridview controls that can cause a postback for various reasons.

When a gridview control causes a postback, the entire tabcontainer gets hidden on the page and therefore nothing is displayed. In the HTML source code I can see that the controls have been added to the page, but the tabcontainer has a style added to it (style="visibility: hidden"]. If I remove this style using the developer tools, the tabcontainer displays and all tabs, but some of the styling gets lost. Is there a specific reason why this occurs and how I can resolve this?

View 4 Replies

AJAX :: Hiding TargetControlID After Postback Processes?

Jan 15, 2010

I'm firing the my ModalPopupExtender from a server side button click (bthAuth) and then need to hide that button after my processing is complete. When btnAuth.Visible = False is called it displays the ModalPopupExtender. If I remove this piece of code the window goes away like it should.

<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnAuth" BackgroundCssClass="modalBackground" PopupControlID="ModalPanel"> </cc1:ModalPopupExtender>

btnAuth_Click():

bunch of stuff here()

btnAuth.Visible = False -- This is what is causing the ModalPopupExtender to stay displayed.

On Page Load:

btnAuth.OnClientClick = String.Format("fnClickUpdate('{0}','{1}')", btnAuth.UniqueID, "")

Function:

<script type="text/javascript">
function fnClickUpdate(sender, e)
{
__doPostBack(sender,e);
}
</script>

View 4 Replies

AJAX :: Modal Popup Is Closing On PostBack

May 7, 2015

I am using normal popup using jquery and css and I have one textbox and one button I need to validate that textbox but the popup is closing how to hold that popup even even if postback occurs?

View 1 Replies

AJAX :: PostBack Causes Modal Popup To Close

Jun 1, 2013

I am using model popup to allow user to input there information . In this model popup . I am having two option  Like OPtion-1 and Option-2 . When User will select Option-1 a panel should open on modelpop up to take Option-1 Detail .Simillarly When Option-2 is pressed another panel should open where User Can fill data. User Ca Fill only single option either OPtion-1 or 2 . 

How I can do this without postback and without model disappear. I don't want to use radio or checkbox button  .I want something good looking and with working function.

View 1 Replies

AJAX :: Avoid Model Popup Disabled On Postback?

Jan 6, 2011

How to avoid Model popup disabled on postback? I have a dropdown list in model popup control with autopost back="true". On post back am getting customer name. But on post model popup get disabled

View 2 Replies

AJAX :: When Use Modal Popup If Click On OK Button There Should Not Be Postback

Jan 5, 2011

Any code related to modal popup to stablise is necessary and if the values are enter correctly then modal popup should get post back.

View 4 Replies

Ajax Popup Control Extender Disapear In Postback ?

Feb 28, 2011

I'm using Ajax Popup Extender and I have Some Buttons Inside It ...One of Them for Close ....The Firing Control for that popup is LinkButton ....so When I click on that link button The popup appear but once the page post back The Pop up Disappear... and that what i don't want ..... I will Explain what i want in Details ... I want POP UP Control to Appear and Other Control In The Page Can Be Using not blocked like Modal POP UP and In that pop Up i will have some Buttons all of them do post back and only one of them close the pop up .... so i want the pop up keep appear what ever which psot back happend and close only when I click on Close button for it......... So How Can I Handle That

View 4 Replies

AJAX :: Display Popup With Partial Page Postback?

Oct 7, 2010

I am using an updatepanel and a grid is placed within the same.Now,I have a checkbox corresponding to each row of the grid.If I check it,say corresponding to one row and click a button(placed outside the panel), a popup will be opened which is a separate aspx page having its own functionality.

The requirement is like I need only the panel to refresh not the whole page.

View 2 Replies

C# - Hiding Address Bar In Popup Window?

Nov 22, 2010

I have one asp.net application, in which i am using some popup windows to open some pages. For this, i am using a method like this

private void OpenWindow(string Url, string height, string Width)
{
try
{
string strScript = "";[code]....

Now its working as fine with showing the address bar. But my requirement is that i have to hide the address bar in all of my popup window.

View 3 Replies

AJAX :: Button Forces Postback In Updatepanel Inside Popup?

Sep 19, 2010

I have an update panel which is inside a Modal Popup Extender. When I click the Refresh Report button it always calls a postback. I need to stop it from posting back.

View 2 Replies

AJAX :: Async Postback Modal Popup With Multiple Buttons?

Aug 12, 2010

I'm trying to create a modal popup that has multiple buttons that a user will click to choose options. This is all well and good but when the user clicks an option it fires a full postback. The modal opens async, but I can't get it to hide async. Heres some code:

[Code]....

View 2 Replies

AJAX :: Modal PopUp's OkClick Causing Full Page Postback?

Apr 28, 2010

I am having issue with my ModalPopUpExtender's OKControlID. I have a button inside an update panel that should do AsyncPostBack. The button works fine and runs server side code but it causes full page postback. How do I solve this issue? I want the 'OK' button inside the modalpopup to call the serverside code and update Label control 'label3' without causing the page flash. Given below is my code;

MarkUp:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Next Gen Web Browser</title>
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.js" type="text/javascript"></script>

[Code]....

View 5 Replies

AJAX :: Modal Popup Close After Postback Event In An Ascx File (user Control)?

Feb 15, 2011

I have an aspx page with multiple modal popups. These modal popups are trigger in the page behind code using .Show() and .Hide().

This is what I have in the .aspx page for the particular modal popup under discussion:

[Code]....

The example below demonstrates the type of calls I am making to the modal popup extenders. Basically using the Datalist item command, the datalist commands are responsible for triggering my modal popups.

[Code]....

They all work fine after postbacks except the "activityReport" case (the last one). The only difference with this modal popup is that it contains a user control and all the postbacks are happening in the user control. So the problem is that in the last case whenever a postback happens in the user control then the modal popup is close.

1. If I separate the modal popup and place it in a page all by itself and trigger it to .Show() through a button click in the page behind code then the modal popup doesn't close. See below example.

[Code]....

2. The button click event in the test page looks as follow:

[Code]....

View 2 Replies

Popup After Updatepanel Postback Is Blocked By Popup Block?

Oct 20, 2010

I make a polling and want to popup the result immediately by window.open function after partial postback (updatepanel). But the popup is blocked by popup blocker. How can I fix it?

Here is my code:

[code]....

View 1 Replies

C# - Ajax Control Toolkit Modal Popup Extender Target Control Causes Postback

Jul 29, 2010

When I click the button to open the modal popup it shows the popup but then continues and forces a postback causing the page to reload and the modal popup to be hidden again.Here is the markup for the control:

<asp:Button id="LoginOpenButton" runat="server" Text="Login"/>

<asp:Panel ID="ContentPanel" runat="server" CssClass="modalPopup">
<fieldset> [code]....

My script manager has no properties other than the id and runat set.

View 1 Replies

AJAX :: Modal Popup Using Modal Disappear In Postback

Jan 24, 2013

I look for a good way for arrangement Admin pages Items

for example Admin Upload Page consists of these sections:

* make a new folder

* delete folder

* upload file in folder

* show folders information (in a gridview)

* download test

so I think one way is showing this sections in modal

but when I tried make a new folder in modal after clicking in create folder button modal disappeared.

Is there any way that  modal doesnt disappear until user click close button?

I mean I want modal to behave like a page.

If there isn't a way what to do for classification sections?

View 1 Replies

AJAX :: Get A Modal Popup Inside A Modal Popup / Fire The Modal Popup On A Condition In A Text Change Event Of A Textbox?

Jan 17, 2010

I am trying to get a modal popup inside a modal popup?, also i want to fire the modal popup on a condition in a text change event of a textbox?...is this possible and can anyone give me directon on this

View 5 Replies

AJAX :: Displaying Popup Message Within Ajax Modal Popup

Dec 7, 2010

In my application I have a formview which is inside of a Ajax modal popup.Once users enter the information in the formview and click save, I validation the input.errors, I want to display an error message as a popup or as a modal popup (not javascript alert) with in the ajax modal.How do I do that. I tried several ways but it closes the ajax modal popup.

View 2 Replies

AJAX :: Modal Popup Click Control Within Panel Is Closing Popup

Jul 27, 2010

I'm using modal popup extender and panel with calendar in it. Click the "Next / Previous Month" closes the modal popup. How do I tell the modal popup to ignore click events in a calendar control inside the panel targeted for popup? I'm confused because when using extender before, you had to click OkButton or Cancel to close popup. I have update panel for reason. I just minimized the code for easy review.

[Code]....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved