f anyone else had tried putting a ajax control tookit combobox inside a jQuery dialog div/panel? If I do a postback on a page with this dialog I get an error 'Microsoft JScript runtime error:
Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.' If I continue I get and error and this stack trace;
[NullReferenceException: Object reference not set to an instance of an object.]
AjaxControlToolkit.ComboBox.LoadPostData(String postDataKey, NameValueCollection postCollection) in d:hgactServerAjaxControlToolkitComboBoxComboBox.cs:681
If I use a standard DropDownList there is no problem. I will stick to the standard control for now but I would prefer to use the toolkit combobox.
Currently I have a project where I have a form in ASP.NET that needs a look up service. For example the input below wants a Customer ID, but maybe the user only knows the customers by name.
I'd like to use jQuery UI's modal dialog to append an image to the right of this input, which fires dialog("open") containing the necessary code to look up a customer by name, returning the ID back to the form input upon closing the dialog. This is extremely similar functionality to the Datepicker's icon trigger found here: http://jqueryui.com/demos/datepicker/#icon-trigger .Right now, I have this javascript:
I need to be able to pass the ID of the input element into jQuery, probably using the $(this) selector somehow. I'd like to be able to re-use the same code for multiple elements on the same form that require the customer ID look up. I also don't know how to create this kind of functionality inside the ASP.NET environment because it doesn't fundamentally allow more than one form inside one .aspx page.
When the user click on TreeNew button appears the modal dialog, then he/she choose an option an click Ok button to do a postback.I need that the server side execute TreeNew_Click method: How can I do that?
If I use __doPostBack('TreeNew', '') it throws me the following error: "Object expected".
UPDATE:I found the origin for the error: the function __doPostBack is not defined. I'm not going to delete the question because I think Chris Clark's answer is so interesting.
I have a really odd behavior here: I created a little popup dialog in jQuery UI, and in my test HTML page, it works flawlessly. When I click on the button, the popup comes up, covers the background, and remains on screen until I click on one of the two buttons (OK or Cancel) provided.
So now I wanted to add this into my ASP.NET 3.5 app. I wanted to add it to a GridView inside a user controls (ASCX), which is on a page (ASPX) contained inside a master page.The jQuery 1.4.2 and jQuery UI 1.8.1 scripts are referenced on the master page:
Update: OK, one problem is solved - it appears that for whatever reason, the default MS Ajax stuff is adding some kind of an "observer" to my popup dialog and closes it right away after it shows up
So I changed the OnClientClick="showDialog();" to OnClientClick="showDialog(); return false;" and how that doesn't happen anymore - the dialog box pops up and stays there until I click on either of the two buttons (OK and Cancel).
I think my title says it all. I have a modal dialog showing up and the user can make some changes and then click a 'Save' button. I need that to totally post back the whole page. I just assumed the button would fire off regardless of the jQuery.
need to open an aspx page (called editItem.aspx in code below) loaded dynamically inside a jQuery UI dialog from a parent aspx page. the child page has a button server control and should go back to parent page after postback. with the following code I get the error"The state information is invalid for this page and might be corrupted"
The Problem:The user entered value is missing in the .Text attribute of the AjaxControlToolkit ComboBox when the enter key pressed. Also the "on change" events events are not called but I am not using postbacks anyway so I do not care.
Example: private void BuildFileListDetails(NHibernateDataProvider _providerM) { int resultsPage = Convert.ToInt32(ddlNavPageNumber.Text);[code].....
My Solution:I needed to access the AjaxToolkit "ComboBox" imbedded TextBox control's .Text to access the value entered by user.
I have tried searching for the answer but have failed to get any insight into this problem. Look at the following two examples. [URL] (JQuery modal dialog without <input> element) Above pages have very simple JQuery modal dialog, whihc displays correctly in IE, Chrome, Safari and Opera. Unfortunately, Firefox does not display the modal dialog with <input> correctly. It displays the other one correctly. I have tried the following without resolution to this peculiar problem:
- Changed doctype - Used <table> to enclose <input> - Used <div> to enclose <input> - Used all possible CSS display attributes for <input>
I'm having some trouble with jQuery UI. I've created a dialog with jQuery UI: so far, so good. I set up a form inside the jQuery UI dialog and then it's another story. I've written a very simple page to illustrate:
In the code above, see that I've just imported the jQuery, jQuery UI, and stylesheets and set up a page with a dialog box. There is an asp control button1 outside the dialog box and an asp control button2 inside the dialog box.
When I click on button1, the event handler gets called and all is well. However, when on click on button2, the button inside the jQuery dialog, nothing happens.Why is my web page behaving this way?
I built a modal dialog using the ModalPopupExtender from the AjaxControlToolkit. In that dialog, I'm trying to use the jQuery Autocomplete feature on a textbox. The values for the autocompletion are fetched from a webservice.I can see that the webservice is returning a result set, and I can see that being picked up in the Autocomplete code. However, the list is not displayed to the user to pick from.I thought this might be a z-Index issue, so I specified 'z-index: 9999 !important;' in my stylesheet. But that doesn't make a difference.
I load an aspx page in iframe inside a jQuery UI dialog to update some data, and after dialog is closed I need to update an updatepanel in parent page. how can I do that? to be more specific, there is a datagrid in parent page and after I edit data in a dialog modal iframe, I want to update the row in datagrid.
im using jquery. is there any way to broke the Dialog popup as diamond shape or any other shape?and how to provide minimize and maximize buttons on the dialog?
I'm assigning a div containing an ordinary grid view to the content of a jquery dialog, but the gridview is omitted from the dialog. I've tried even building the dialog fresh on a button click in case it's having a hard time binding to the data-refreshedgrid. No Joy.
I have a ajax combobox inside a table row which is hidden (display:none) on page load in javascript.
When user clicks a hyperlink, i need to show this row. But when i make this row visible (display:block), the ajax combobox dropdown button and list does not show up.
If I make the row always visible, then the combobox appears fine.
I read about this problem of showing a ajax combobox which was hidden on page load, but not able to get a proper solution.
I have a display problem when I try to use a ajax combobox inside a tab control: when my tab control loads on the page where the combobox is, everything works fine; however, if it loads on a another page, the you change to the page which contains the combobox, the right button (which opens the list of the combobox) isn't displayed at all.
I have a set of server side combo boxes in a table. Based on client events, I need them to appear or disappear. I've tried the following with no success:
I managed to get my jquery ui Dialog working from codebehind. Now i face another problem.I have a gridview inside the div that's being used to .dialog(). That gridview is not showing inside the dialog.If i enter another control as an asp:button it does shows, so i'm a little confused.For example:
I m trying to open up a modal pop up dialog with a gridview inside. The problem is there is no pop up opens when i click the button. Here is the code below.Any help would be great.