原創(chuàng)|其它|編輯:郝浩|2012-10-24 09:52:15.000|閱讀 238 次
概述:我們可以用Text和ImageUrl屬性來分別將指標(biāo)的等待消息配置為顯示文本或圖像。如果兩個屬性都設(shè)置了,那么Text屬性優(yōu)先于ImageUrl屬性。在設(shè)計和運行時,我們都可以在控制層配置AJAX指示燈。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
在NetAdvantage for .NET中我們可以用Text和ImageUrl屬性來分別將指標(biāo)的等待消息配置為顯示文本或圖像。如果兩個屬性都設(shè)置了,那么Text屬性優(yōu)先于ImageUrl屬性。在設(shè)計和運行時,我們都可以在控制層配置AJAX指示燈。
代碼如下:
VB
Me.WebDataGrid1.AjaxIndicator.Enabled = Infragistics.Web.UI.DefaultableBoolean.[True] Me.WebDataGrid1.AjaxIndicator.Text = "Ajax Call Wait Indicator" Me.WebDataGrid1.AjaxIndicator.Location = Infragistics.Web.UI.RelativeLocation.AboveCenter ' Set the location of the Ajax Indicator specific to the control. Me.WebDataGrid1.AjaxIndicator.RelativeToControl = Infragistics.Web.UI.DefaultableBoolean.[True] ' Blocks or Grey out the control during Ajax call Me.WebDataGrid1.AjaxIndicator.BlockArea = Infragistics.Web.UI.AjaxIndicatorBlockArea.Control
C#
this.WebDataGrid1.AjaxIndicator.Enabled = Infragistics.Web.UI.DefaultableBoolean.True; this.WebDataGrid1.AjaxIndicator.Text = "Ajax Call Wait Indicator"; this.WebDataGrid1.AjaxIndicator.Location = Infragistics.Web.UI.RelativeLocation.AboveCenter; // Set the location of the Ajax Indicator specific to the control. this.WebDataGrid1.AjaxIndicator.RelativeToControl = Infragistics.Web.UI.DefaultableBoolean.True; // Blocks or Grey out the control during Ajax call this.WebDataGrid1.AjaxIndicator.BlockArea = Infragistics.Web.UI.AjaxIndicatorBlockArea.Control;
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)