原創|其它|編輯:郝浩|2012-10-24 09:52:15.000|閱讀 238 次
概述:我們可以用Text和ImageUrl屬性來分別將指標的等待消息配置為顯示文本或圖像。如果兩個屬性都設置了,那么Text屬性優先于ImageUrl屬性。在設計和運行時,我們都可以在控制層配置AJAX指示燈。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
在NetAdvantage for .NET中我們可以用Text和ImageUrl屬性來分別將指標的等待消息配置為顯示文本或圖像。如果兩個屬性都設置了,那么Text屬性優先于ImageUrl屬性。在設計和運行時,我們都可以在控制層配置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;
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網