I would like to add timer to FileBrowser, what I did is
1. add Timer from AJax Extension,
2. Add Label
3. add Timer_Tick like the follower
1. add Timer from AJax Extension,
2. Add Label
<div class="leftPaneHeader">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
3. add Timer_Tick like the follower
protected void Timer1_Tick(object sender, EventArgs e)
{
RadTreeView1.Nodes.Clear();
LoadTreeView(Server.MapPath(
"~/"));
Label1.Text =
"Updated at " + DateTime.Now.ToLongTimeString();
}
the Timer works, but it refresh the whole page, my questions are:
how to use timer to update page (which are only treeview and gridview )partially? how to keep the node expand and selected after user made a expansion and selection when update page partial?