Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
RefreshInterval in WebAsyncRefreshPanel
posted

I want to set RefreshInterval property value 3000 when I check/uncheck my checkbox in code behind. But it is not working. Below by code ...

<infra:WebAsyncRefreshPanel ID="asyncPanel" runat="server" Width="100%" RefreshComplete="asyncPanel1_RefreshRequest" ContentRefresh="WebAsyncRefreshPanel1_ContentRefresh"RefreshTargetIDs="UltraWebGrid">

</infra:WebAsyncRefreshPanel>

protected void Page_Load(object sender, EventArgs e)
{   
        if (chkAutoRefresh.Checked)
        {
            asyncPanel.RefreshInterval = 3000;
        }

}

protected void WebAsyncRefreshPanel1_ContentRefresh(object sender, EventArgs e)
{
        GetInListData();
}