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

Auto Refresh

1 Answer 85 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Srini
Top achievements
Rank 1
Srini asked on 27 Sep 2008, 01:17 PM
I am working on an application using telerik radtree for Silverlight that shows various staff attendance in a hierarchial tree. The tree is divided into Area - Sub Area - Department - Staff.

As the staff sign-in for the day, the database is updated by a separate process.

Is there any way to change the state of the tree nodes to reflect staff attendance. For example if a staff member has attended the image associated to turn green. Similarly when all staff in a department have signed in turn its image to green and so forth.

I want the tree to dynamically reflect the changes in the database without user refreshing or reloading the tree. Any help will be well appreciated.

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 29 Sep 2008, 08:59 AM
Hi Srini,

you should first build your own mechanism for notifying the Silverlight client that something has happened on the backend (e.g. a user has sign-in, or signed-off). One option for building this mechanism is to have a timer that will check for changes in the Database by using a web service. This web service can return the list of changed users, together with their status and then you can update the appropriate TreeView items to reflect the changes.

This way you will not need to refresh your application.

Kind regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Srini
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or