How to change the image of a WebAsyncRefreshPanel's Progress Indicator

前端之家收集整理的这篇文章主要介绍了How to change the image of a WebAsyncRefreshPanel's Progress Indicator前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Knowledge Base Article: KB010076

HOWTO:How to change the image of a WebAsyncRefreshPanel's Progress Indicator

@H_403_9@

The information in this article applies to:@H_403_9@WebAsyncRefreshPanel (v6.3.20063,7.1.20071,7.2.20072) Article Created:@H_403_9@9/24/2007@H_403_9@@H_403_9@Last Updated:@H_403_9@9/25/2007@H_403_9@@H_403_9@Article Type:@H_403_9@How To
Page Options
Average Rating: @H_403_9@ 4 out of 10 @H_403_9@
Rate this page
Print this page
E-mail this page
Add to Favorites
@H_301_105@

Summary

The WebAsyncRefreshPanel comes with its own animated image for its progress indicator. If you would like to use a different image for the progress indicator,you will need to set this on the client-side.

Step-By-Step Example

To change the WebAsyncRefreshPanel’s Progress Indicator image,you will need to handle the control’s client side InitializePanel event. In this event,you will then need to get a reference to the progress indicator itself using the WebAsyncRefreshPanel’s getProgressIndicator() method. Once you have a reference to the progress indicator,you can use its setImageUrl() method to change the image you want to use.@H_403_9@@H_403_9@In JavaScript:@H_403_9@

function WebRefreshPanel2_InitializePanel(oPanel)@H_403_9@{@H_403_9@oPanel.getProgressIndicator().setImageUrl("<name of gif file>");@H_403_9@}@H_403_9@

Samples

warp_progressindicator_cs.zip @H_403_9@How to change the WARP's Progress Indicator in C# @H_403_9@ @H_403_9@ warp_progressindicator_vb.zip How to change the WARP's Progress Indicator in VB.Net
原文链接:https://www.f2er.com/vb/263135.html

猜你在找的VB相关文章