Grid autorefresh with checkbox

3 posts, 1 answers
  1. SURESH
    SURESH   avatar
    16 posts
    Member since:
    May 2009

    Posted 05 Jan 2010 Link to this post

    Hi
      I am using radgrid and i need to refresh grid in every 10 sec but grid should refresh only when i am selected checkbox . .....if checkedbox true means then only page should ready to refresh otherwise page would not refresh........

    (Thanks)
    Regards
    Suresh.S
  2. Answer
    Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 05 Jan 2010 Link to this post

    Hello Suresh,

    You could use the ASP.NET Timer control:
    <asp:CheckBox ID="TimerCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="TimerCheckBox_CheckedChanged" />
    <asp:Timer ID="Timer1" runat="server" Enabled="false" Interval="3000" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <telerik:RadGrid ID="RadGrid1" runat="server" ... />
        </ContentTemplate>
    </asp:UpdatePanel>

    protected void TimerCheckBox_CheckedChanged(object sender, EventArgs e)
    {
        Timer1.Enabled = (sender as CheckBox).Checked;
    }

    Introduction to the Timer Control

    Regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. SURESH
    SURESH   avatar
    16 posts
    Member since:
    May 2009

    Posted 05 Jan 2010 Link to this post

    Thanks for ur response
Back to Top