使用更新面板时,gridview不可见。 [英] gridview is not visible when using update pannel.
本文介绍了使用更新面板时,gridview不可见。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是要加载的模态页面。
this is the modal page to be loaded.
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" ChildrenAsTriggers="false" runat="server">
<ContentTemplate>
<asp:GridView ID="gridetails" runat="server"
..... </asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="gridetails" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
$ m $ b in this m odal form
in this modal form
$(document).on("click", "#Loadqty_detl", function () {
var dlg1= $('<div id=DialogDiv>').dialog({
height: $(document).height() - 100,
width: $(document).width() - 100,
appendTo:"form",
closeOnEscape: true,
autoOpen: false,
modal: true,
title: "Entry form",
open: function () {
$(this).load('Ord_Quantitydetl.aspx');
},
show: {
effect: "blind",
duration: 500
},
hide: {
effect: "clip",
duration: 1000
},
buttons: {
Close: function () {
$(this).dialog("close");
}
}
});
var reload = dlg1.dialog("open");
Sys.Application.add_init(reload);
});
但是只要取消注释了scripmanager或updatepannel,就不会加载这个gridview,因为显示了空白的modalpopup。
but as long as scripmanager or updatepannel is uncommented this gridview is not loaded as aresult blank modalpopup is shown.
推荐答案
( document )。on( < span class =code-string> click, #Loadqty_detl,< span class =code-keyword> function (){
var dlg1 =
(document).on("click", "#Loadqty_detl", function () { var dlg1=
( ' < div id = DialogDiv>')。dialog({
height:
('<div id=DialogDiv>').dialog({ height:
( document )。height() - 100 ,
宽度:
(document).height() - 100, width:
这篇关于使用更新面板时,gridview不可见。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文