UpdatePanel 重新向页面注册脚本方法
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
$("td.operatetd").hover(function toggleoperate() {
$(this).find("span").fadeToggle(300);
});
var isTreeClick = document.getElementById("<%=hidNotNull.ClientID %>").value;
if (isTreeClick != "false") {
var mapTeeVal = document.getElementById("<%=hidMapTee.ClientID %>").value;
loadTreeCell(mapTeeVal);
}
$(document).progressDialog.hideDialog();
var tid = '';
var otherHeight = <%=gvDepartment.OtherHeight %>;
var _bodyheight = jQuery('body').height() - otherHeight;
$('#<%=gvDepartment.ClientID %>').chromatable({ width: '100%', height: _bodyheight + 'px', scrolling: 'yes' });
$(window).resize(function () { if (tid != '') $('#' + tid).css('height', jQuery('body').height() - otherHeight + 'px') });
});
prm.add_beginRequest(function(){
$(document).progressDialog.showDialog('数据加载中,请稍等片刻...', '/JQResource/JQTable/images/loading.gif');
});


浙公网安备 33010602011771号