加载数据时RadGrid Progressbar

时间:2016-11-16 14:27:44

标签: telerik

我有一个包含10列和1000行的RadGrid。加载需要一段时间,与此同时,我想显示圆圈进度。怎么可能?

2 个答案:

答案 0 :(得分:1)

您必须添加RadAjaxManager和RadAjaxLoadingPanel

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel>
<div class="demo-container no-bg">
    <telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AllowSorting="True"
        AllowPaging="True" GridLines="None" Width="100%">
        <PagerStyle Mode="Slider" Position="TopAndBottom" PageSizeControlType="RadComboBox"></PagerStyle>
    </telerik:RadGrid>
</div>

答案 1 :(得分:0)

您将使用Telerik的RadAjaxloadingPanel

Telerik有很多例子。

https://demos.telerik.com/aspnet-ajax/ajaxloadingpanel/overview/defaultcs.aspx