Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#7249 closed bug (notabug)

Dialog not work with update panel

Reported by: Chili82 Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.11
Keywords: Cc:
Blocked by: Blocking:

Description

Dialog not work with update panel,

Change History (3)

comment:1 Changed 9 years ago by Scott González

Resolution: invalid
Status: newclosed

Please provide an actual description of the problem, along with a reduced test case.

comment:2 Changed 9 years ago by Chili82

When the dialog inside the update panel then the component does not behave as expected. If you do the update postback panel dialog loses reference and does not call it the right way, following the script does not react:

etc.

<script>

$(function() {

a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore! $( "#dialog:ui-dialog" ).dialog( "destroy" );

$( "#dialog-modal" ).dialog({

height: 140, modal: true

});

}); </script>

</head> <body>

<asp:UpdatePanel runat="server" oninit="Unnamed1_Init" >

<ContentTemplate>

<div class="demo">

<div id="dialog-modal" title="Basic modal dialog">

<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>

</div>

<!-- Sample page content to illustrate the layering of the dialog -->

<div class="hiddenInViewSource" style="padding:20px;">

<p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p> <form>

<input value="text input" /><br /> <input type="checkbox" />checkbox<br /> <input type="radio" />radio<br /> <select>

<option>select</option>

</select><br /><br /> <textarea>textarea</textarea><br />

</form>

</div><!-- End sample page content -->

</div> </ContentTemplate> </UpdatePanel> </body>

comment:3 Changed 9 years ago by Scott González

Please provide a page that runs purely on the client. If you need help using Dialogs with ASP, use the forums.

Note: See TracTickets for help on using tickets.