JQModal, JQuery UI tabs & ASP.net checkboxlisthttp://forums.asp.net/t/1621763.aspx/1?JQModal+JQuery+UI+tabs+ASP+net+checkboxlistWed, 10 Nov 2010 15:30:37 -050016217634161994http://forums.asp.net/p/1621763/4161994.aspx/1?JQModal+JQuery+UI+tabs+ASP+net+checkboxlistJQModal, JQuery UI tabs & ASP.net checkboxlist <p>I have a modal with JQuery UI tabs inside. There is a ASP.NET checkbox list server control in one of the tabs. I am facing a weird issue that if I set toTop:true in JQModal parameters</p> <p><br> </p> <pre class="prettyprint">$(document).ready(function() { $('#testDiv').jqm({toTop: true}); });</pre><p><br> when I run a server side foreach on the checkbox list it always returns false on all items. Even though if they are selected/checked by user on screen ._.</p><p><br></p><pre class="prettyprint">foreach (ListItem li in cbItems.Items) { if (li.Selected) // &lt;= Always false ??? { DataRow dr = dt.NewRow(); dr["ID"] = Convert.ToInt32(li.Value.ToString()); dr["ITEMNAME"] = li.Text.ToString(); dt.Rows.Add(dr); } } </pre> <p><br> Removing <b>toTop</b> from the JQModal parameters solves the problem but creates another problem that in IE7 my JQ modal window is behind the overlay of modal, which might be due to the container div having CSS position:relative. Any clue guys ?<img src="http://i55.tinypic.com/2qs9hjl.jpg" height="427" width="833" style="vertical-align:middle"></p> <p><b>Edit:</b></p> <p>&nbsp;The checkbox list is inside an updatepanel. Using &#36;('body').append(&#36;('#testdiv')) ; fixes the overlay problem but looses the server side events. I found a similar situation here http://forum.jquery.com/topic/jqmodal-and-asp-net-updatepanel-in-master-page-do-not-work-in-ie7-in-the-content-pages-found-the-solution but dont understand the solution. I removed the tabs , so the problem is with JQ Modal and updatepanel only.<br> </p> 2010-11-10T05:45:57-05:004162985http://forums.asp.net/p/1621763/4162985.aspx/1?Re+JQModal+JQuery+UI+tabs+ASP+net+checkboxlistRe: JQModal, JQuery UI tabs & ASP.net checkboxlist <p>for a checklist to postback it must be a descendant &nbsp;of the &nbsp;&lt;form runat=server&quot;&gt; when the postback occurs. when the modal appends its div to body, the checklist is no longer a descendant, and not included in the partial postback.</p> <p>you have a couple options.&nbsp;</p> <p>1) create a hidden field in the form, and set the checked values there.<br> 2) move the &lt;form runat=server&gt; to be the first child of body, and append the dialog to &#36;('form') instead of &#36;('body').&nbsp;</p> 2010-11-10T15:30:37-05:00