/// <reference name="MicrosoftAjax.js"/>
// Copyright (c) iucon GmbH. All rights reserved.
// For more information about our work, visit http://www.iucon.com
Type.registerNamespace("iucon.web.Controls");
iucon.web.Controls.PartialUpdatePanel = function(element) {
iucon.web.Controls.PartialUpdatePanel.initializeBase(this, [element]);
this._userControlPath = null;
this._parameters = new Array();
this._showLoading = false;
this._autoRefreshInterval = 0;
this._autoRefreshTimerID = null;
this._initiallyRenderFromClient = false;
this._renderAfterPanel = null;
this._loadHandler = null;
this._renderAfterPanelHandler = null;
this._displayLoadingAfter = 0;
this._displayLoadingAfterTimerID = null;
this._currentCulture = null;
this._currentUICulture = null;
this._addComponentBackup = null;
this._dataItems = null;
this._executor = null;
this._request = null;
}
iucon.web.Controls.PartialUpdatePanel.prototype = {
initialize: function() {
iucon.web.Controls.PartialUpdatePanel.callBaseMethod(this, 'initialize');
if (window._partialScriptReferences == null)
window._partialScriptReferences = new Array();
if (this._initiallyRenderFromClient) {
if (this._renderAfterPanel == null)
this.refresh();
else {
this._loadHandler = Function.createDelegate(this, this._onLoad);
Sys.Application.add_load (this._loadHandler);
}
}
},
dispose: function() {
if (this._loadHandler) {
Sys.Application.remove_load(this._loadHandler);
this._loadHandler = null;
}
iucon.web.Controls.PartialUpdatePanel.callBaseMethod(this, 'dispose');
},
_onLoad : function() {
var control = $find(this._renderAfterPanel);
if (control) {
this._renderAfterPanelHandler = Function.createDelegate(this, this._onRenderAfterPanel);
control.add_refreshComplete(this._renderAfterPanelHandler);
// show loading panel
if (this._showLoading) {
var loadingPanel = $get(this.get_element().id + '_LoadingPanel');
if (loadingPanel) {
loadingPanel.style.display = 'block';
loadingPanel.style.visibility = 'visible';
}
}
}
},
_onRenderAfterPanel : function(e) {
var control = $find(this._renderAfterPanel);
if (control && this._renderAfterPanelHandler) {
control.remove_refreshComplete(this._renderAfterPanelHandler);
this._renderAfterPanelHandler = null;
}
this.refresh();
},
/// ShowLoading
get_ShowLoading : function() {
return this._showLoading;
},
set_ShowLoading : function(value) {
this._showLoading = value;
},
/// UserControlPath
get_UserControlPath : function() {
return this._userControlPath;
},
set_UserControlPath : function(value) {
this._userControlPath = value;
},
/// Parameters
get_Parameters : function() {
return this._parameters;
},
set_Parameters : function(value) {
this._parameters = new Array();
if (value != null)
{
for (var i = 0; i < value.length; i++)
{
this._parameters[value[i]["Name"]] = value[i]["Value"];
}
}
},
/// AutoRefreshInterval
get_AutoRefreshInterval : function() {
return this._autoRefreshInterval;
},
set_AutoRefreshInterval : function(value) {
this._autoRefreshInterval = value;
if (this._autoRefreshInterval > 0)
{
var element = this.get_element();
this._autoRefreshTimerID = setInterval('$find(\'' + element.id + '\').refresh()', this._autoRefreshInterval);
}
else if (this._autoRefreshTimerID != null)
{
clearTimeout(this._autoRefreshTimerID);
this._autoRefreshTimerID = null;
}
},
// DisplayLoadingAfter
get_DisplayLoadingAfter : function() {
return this._displayLoadingAfter;
},
set_DisplayLoadingAfter : function(value) {
this._displayLoadingAfter = value;
},
/// InitialRenderBehaviour
get_InitiallyRenderFromClient : function() {
return this._initiallyRenderFromClient;
},
set_InitiallyRenderFromClient : function(value) {
this._initiallyRenderFromClient = value;
},
/// RenderAfterPanel
get_RenderAfterPanel : function() {
return this._renderAfterPanel;
},
set_RenderAfterPanel : function(value) {
this._renderAfterPanel = value;
},
// CurrentCulture
get_CurrentCulture : function() {
return this._currentCulture;
},
set_CurrentCulture : function(value) {
this._currentCulture = value;
},
// CurrentUICulture
get_CurrentUICulture : function() {
return this._currentUICulture;
},
set_CurrentUICulture : function(value) {
this._currentUICulture = value;
},
// RefreshComplete Event
add_refreshComplete : function(handler) {
this.get_events().addHandler('refreshComplete', handler);
},
remove_refreshComplete : function(handler) {
this.get_events().removeHandler('refreshComplete', handler);
},
raiseRefreshComplete : function(eventArgs) {
var handler = this.get_events().getHandler('refreshComplete');
if (handler) {
handler(this, eventArgs);
}
},
doPostBack : function(eventTarget, eventArgument) {
this._refresh(eventTarget, eventArgument);
},
abortPostBack : function() {
if (this._request == null) return;
this._request.get_executor().abort();
this._request = null;
this._clearShowLoadingPanelTimer();
},
refresh : function() {
this._refresh(null, null);
},
_showLoadingPanel : function() {
this._clearShowLoadingPanelTimer();
if (this._displayLoadingAfter > 0)
{
var element = this.get_element();
this._displayLoadingAfterTimerID = setInterval('$find(\'' + element.id + '\')._internalShowLoadingPanel()', this._displayLoadingAfter);
}
else
this._internalShowLoadingPanel();
},
_internalShowLoadingPanel : function () {
var element = this.get_element();
var loadingPanel = $get(element.id + '_LoadingPanel');
var contentPanel = $get(element.id + '_ContentPanel');
if (loadingPanel)
{
loadingPanel.style.display = 'block';
loadingPanel.style.visibility = 'visible';
}
if (contentPanel)
{
contentPanel.innerHTML = '';
contentPanel.style.visibility = 'hidden';
}
},
_clearShowLoadingPanelTimer : function() {
if (this._displayLoadingAfterTimerID != null)
{
clearTimeout(this._displayLoadingAfterTimerID);
this._displayLoadingAfterTimerID = null;
}
},
_refresh : function(eventTarget, eventArgument) {
// a refresh is in progress => do not
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
PartialUpdatePanel.zip (46个子文件)
PartialUpdatePanel
Control
ScriptDataWrapper.cs 3KB
PartialUpdatePanel.resx 5KB
Control.csproj 4KB
ScriptRenderer.cs 4KB
bin
Debug
ko
ru
nl
es
he
ja
fr
zh-CHS
zh-CHT
de
tr-TR
pt
ar
cs
iucon.web.Controls.PartialUpdatePanel.pdb 64KB
hi
iucon.web.Controls.PartialUpdatePanel.dll 47KB
it
ParameterCollection.cs 2KB
Parameter.cs 1KB
PartialPageStatePersister.cs 2KB
Properties
AssemblyInfo.cs 2KB
Control.csproj.vspscc 257B
PartialUpdatePanel.cs 10KB
PartialUpdatePanel.js 19KB
Control.sln 1KB
PartialUpdatePanelHandler.cs 2KB
PanelHostPage.cs 11KB
PartialUpdatePanelDesigner.cs 3KB
ClientScriptRegister.cs 2KB
PartialUpdatePanel.sln 4KB
TestWeb
PostBackSample.ascx.cs 897B
App_Code
AutoComplete.cs 1KB
JavaScriptSample.ascx 386B
web.config 8KB
ParameterSample.ascx 320B
AutoComplete.asmx 107B
App_Data
Countries.xml 13KB
Default.aspx 9KB
JavaScriptSample.ascx.cs 706B
Default.aspx.cs 425B
DataBindingSample.ascx 1KB
LongTimeUpdateSample.ascx 188B
LongTimeUpdateSample.ascx.cs 525B
ExternalRefreshSample.ascx.cs 519B
StyleSheet.css 1KB
DataBindingSample.ascx.cs 469B
ToolkitSample.ascx 3KB
images
loading.gif 4KB
iucon.gif 3KB
Thumbs.db 5KB
ExternalRefreshSample.ascx 193B
PostBackSample.ascx 734B
Bin
ko
ru
nl
es
he
ja
fr
zh-CHS
zh-CHT
de
tr-TR
pt
ar
cs
iucon.web.Controls.PartialUpdatePanel.pdb 64KB
hi
iucon.web.Controls.PartialUpdatePanel.dll 47KB
AjaxControlToolkit.dll 1.83MB
it
ParameterSample.ascx.cs 728B
ToolkitSample.ascx.cs 585B
共 46 条
- 1
资源评论
- 行之8882012-09-01一般,不怎么好用
- checailing2016-01-08没有具体的说明
guiliangfeng
- 粉丝: 3
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 111111111111111111111111
- 照片整理小工具,按照照片日期分类,.Net4.5(C#),可以将HEIC转换位JPG格式
- 海信智能电视刷机数据 H55E3A(3325)BOM7-C003 生产用软件数据 务必确认机编一致 强制刷机 整机USB升级
- EasyCode自定义模版
- 只要把你们都熬死,我就能无敌 作者:酸宝.jpg
- 华为OD刷刷华为OD的算法题
- 数据分析(如excel、powerBI、python、R语言或其他数据分析工具)面试题.pdf
- content_1713311841645.pdf
- 注意力机制:深度学习的核心机制及其在自然语言处理中的应用.pdf
- 深度学习常见面试题.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功