This is a migrated thread and some comments may be shown as answers.

[Solved] AJAX Timer and FileBrowser Example

0 Answers 135 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Zhengmao
Top achievements
Rank 1
Zhengmao asked on 21 Apr 2008, 01:36 PM
I would like to add timer to FileBrowser, what I did is

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?
 

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Zhengmao
Top achievements
Rank 1
Share this question
or